Function

AppStreamutils_install_metadata_file

Declaration [src]

gboolean
as_utils_install_metadata_file (
  AsMetadataLocation location,
  const gchar* filename,
  const gchar* origin,
  const gchar* destdir,
  GError** error
)

Description [src]

Installs an AppStream MetaInfo, AppStream Metadata Catalog or AppStream Icon tarball file to the right place on the filesystem. Please note that this function does almost no validation and may guess missing values such as icon sizes and origin names. Ensure your metadata is good before installing it.

Available since:0.14.0

Parameters

location AsMetadataLocation
 

The AsMetadataLocation, e.g. AS_METADATA_LOCATION_CACHE.

filename const gchar*
 

The full path of the file to install.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
origin const gchar*
 

The origin to use for the installation, or NULL.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
destdir const gchar*
 

The destdir to use, or NULL.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE for success, FALSE if error is set.