Method
AppStreamPooladd_extra_data_location_full
since: 1.2.2
Declaration [src]
void
as_pool_add_extra_data_location_full (
AsPool* pool,
const gchar* directory,
AsFormatStyle format_style,
AsComponentScope scope,
const gchar* origin
)
Description [src]
Like as_pool_add_extra_data_location(), but with explicit control over the scope and origin of the loaded components. This is useful for bundling systems where the metadata origin does not identify its source, e.g. to load the metadata of a Flatpak remote with the remote’s name as origin.
Available since: 1.2.2
Parameters
directory-
Type:
const gchar*An existing filesystem location.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. format_style-
Type:
AsFormatStyleThe expected format style of the metadata, e.g.
AS_FORMAT_STYLE_CATALOG. scope-
Type:
AsComponentScopeThe
AsComponentScopeto assign to components found indirectory. origin-
Type:
const gchar*An origin name to assign to components found in
directory, orNULLto keep the origin from the metadata.The argument can be NULL.The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string.