Method

AppStreamMetadataparse_bytes

Declaration [src]

gboolean
as_metadata_parse_bytes (
  AsMetadata* metad,
  GBytes* bytes,
  AsFormatKind format,
  GError** error
)

Description [src]

Parses any AppStream metadata into one or more AsComponent instances.

Available since:0.14.0

Parameters

bytes GBytes
 

Metadata describing one or more software components.

 The data is owned by the caller of the function.
format AsFormatKind
 

The format of the data (XML or YAML).

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

Return value

Returns: gboolean
 

TRUE on success.