Method

AppStreamMetadataparse_file

Declaration [src]

gboolean
as_metadata_parse_file (
  AsMetadata* metad,
  GFile* file,
  AsFormatKind format,
  GError** error
)

Description [src]

Parses an AppStream upstream metadata file.

If file does not exist, G_IO_ERROR_NOT_FOUND will be returned. Other GIOErrors and AsMetadataErrors may be returned as appropriate.

Parameters

file GFile
 

GFile for the upstream metadata.

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

The format the data is in, or AS_FORMAT_KIND_UNKNOWN if not known.

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

Return value

Returns: gboolean
 

TRUE if the file was parsed without error.