Method

AppStreamMetadatasave_catalog

Declaration [src]

gboolean
as_metadata_save_catalog (
  AsMetadata* metad,
  const gchar* fname,
  AsFormatKind format,
  GError** error
)

Description [src]

Serialize all AsComponent instances to XML or YAML metadata and save the data to a file. An existing file at the same location will be overridden.

Parameters

fname const gchar*
 

The filename for the new metadata file.

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

Return value

Returns: gboolean
 

TRUE if the file was written without error.