Method

AppStreamMetadatacomponents_to_catalog

Declaration [src]

gchar*
as_metadata_components_to_catalog (
  AsMetadata* metad,
  AsFormatKind format,
  GError** error
)

Description [src]

Serialize all AsComponent instances into AppStream catalog metadata. NULL is returned if there is nothing to serialize.

Parameters

format AsFormatKind
 

The format to serialize the data to (XML or YAML).

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

Return value

Returns: gchar*
 

A string containing the YAML or XML data. Free with g_free()

 The caller of the method takes ownership of the data, and is responsible for freeing it.
 The value is a NUL terminated UTF-8 string.