as-metadata-private 3 APPSTREAM Library
as-metadata-private

## Functions

AsComponent * | as_metadata_parse_component_node ()
void | as_metadata_set_parser_mode ()
AsParserMode | as_metadata_get_parser_mode ()

## Types and Values

enum | AsParserMode

## Description

## Functions

### as_metadata_parse_component_node ()

    AsComponent *
    as_metadata_parse_component_node (AsMetadata *metad,
                                      xmlNode *node,
                                      gboolean allow_invalid,
                                      GError **error);

as_metadata_parse_component_node

### as_metadata_set_parser_mode ()

    void
    as_metadata_set_parser_mode (AsMetadata *metad,
                                 AsParserMode mode);

Sets the current metadata parsing mode.

#### Parameters

metad | a AsMetadata instance. |
mode | the AsParserMode. |

as_metadata_set_parser_mode

### as_metadata_get_parser_mode ()

    AsParserMode
    as_metadata_get_parser_mode (AsMetadata *metad);

Gets the current parser mode

#### Parameters

metad | a AsMetadata instance. |

#### Returns

an AsParserMode

as_metadata_get_parser_mode

## Types and Values

### enum AsParserMode

There are a few differences between Appstream's upstream metadata and the distribution metadata. The parser mode indicates which style we should process. Usually you don't want to change this.

#### Members

AS_PARSER_MODE_UPSTREAM | Parse Appstream upstream metadata |
AS_PARSER_MODE_DISTRO | Parse Appstream distribution metadata |
AS_PARSER_MODE_LAST |  |

AsParserMode