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: AsFormatStyle

The expected format style of the metadata, e.g. AS_FORMAT_STYLE_CATALOG.

scope

Type: AsComponentScope

The AsComponentScope to assign to components found in directory.

origin

Type: const gchar*

An origin name to assign to components found in directory, or NULL to 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.