Method

AppStreamMetadatasave_metainfo

Declaration [src]

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

Description [src]

Serialize AsComponent instance to XML and save it to 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
 

The format to save this file in. Only XML is supported at time.

error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE if the file was written without error.