as-yaml 3 APPSTREAM Library
as-yaml Helper functions to parse AppStream YAML data

## Functions

void | as_yaml_parse_layer ()
gboolean | as_yaml_free_node ()
const gchar * | as_yaml_node_get_key ()
const gchar * | as_yaml_node_get_value ()
void | as_yaml_print_unknown ()
void | as_yaml_mapping_start ()
void | as_yaml_mapping_end ()
void | as_yaml_sequence_start ()
void | as_yaml_sequence_end ()
void | as_yaml_emit_scalar ()
void | as_yaml_emit_scalar_uint ()
void | as_yaml_emit_scalar_key ()
void | as_yaml_emit_entry ()
void | as_yaml_emit_entry_uint ()
void | as_yaml_emit_entry_timestamp ()
void | as_yaml_emit_long_entry ()
void | as_yaml_emit_sequence ()
void | as_yaml_emit_sequence_from_str_array ()
void | as_yaml_emit_localized_strv ()
GNode * | as_yaml_get_localized_node ()
gchar * | as_yaml_get_localized_value ()
void | as_yaml_emit_localized_entry ()
void | as_yaml_emit_long_localized_entry ()
void | as_yaml_list_to_str_array ()

## Includes

    #include <appstream.h>

## Description

## Functions

### as_yaml_parse_layer ()

    void
    as_yaml_parse_layer (yaml_parser_t *parser,
                         GNode *data,
                         GError **error);

Create GNode tree from DEP-11 YAML document

as_yaml_parse_layer

### as_yaml_free_node ()

    gboolean
    as_yaml_free_node (GNode *node,
                       gpointer data);

as_yaml_free_node

### as_yaml_node_get_key ()

    const gchar *
    as_yaml_node_get_key (GNode *n);

Helper method to get the key of a node.

as_yaml_node_get_key

### as_yaml_node_get_value ()

    const gchar *
    as_yaml_node_get_value (GNode *n);

Helper method to get the value of a node.

as_yaml_node_get_value

### as_yaml_print_unknown ()

    void
    as_yaml_print_unknown (const gchar *root,
                           const gchar *key);

as_yaml_print_unknown

### as_yaml_mapping_start ()

    void
    as_yaml_mapping_start (yaml_emitter_t *emitter);

as_yaml_mapping_start

### as_yaml_mapping_end ()

    void
    as_yaml_mapping_end (yaml_emitter_t *emitter);

as_yaml_mapping_end

### as_yaml_sequence_start ()

    void
    as_yaml_sequence_start (yaml_emitter_t *emitter);

as_yaml_sequence_start

### as_yaml_sequence_end ()

    void
    as_yaml_sequence_end (yaml_emitter_t *emitter);

as_yaml_sequence_end

### as_yaml_emit_scalar ()

    void
    as_yaml_emit_scalar (yaml_emitter_t *emitter,
                         const gchar *value);

as_yaml_emit_scalar

### as_yaml_emit_scalar_uint ()

    void
    as_yaml_emit_scalar_uint (yaml_emitter_t *emitter,
                              guint value);

as_yaml_emit_scalar_uint

### as_yaml_emit_scalar_key ()

    void
    as_yaml_emit_scalar_key (yaml_emitter_t *emitter,
                             const gchar *key);

as_yaml_emit_scalar_key

### as_yaml_emit_entry ()

    void
    as_yaml_emit_entry (yaml_emitter_t *emitter,
                        const gchar *key,
                        const gchar *value);

as_yaml_emit_entry

### as_yaml_emit_entry_uint ()

    void
    as_yaml_emit_entry_uint (yaml_emitter_t *emitter,
                             const gchar *key,
                             guint value);

as_yaml_emit_entry_uint

### as_yaml_emit_entry_timestamp ()

    void
    as_yaml_emit_entry_timestamp (yaml_emitter_t *emitter,
                                  const gchar *key,
                                  guint64 unixtime);

as_yaml_emit_entry_timestamp

### as_yaml_emit_long_entry ()

    void
    as_yaml_emit_long_entry (yaml_emitter_t *emitter,
                             const gchar *key,
                             const gchar *value);

as_yaml_emit_long_entry

### as_yaml_emit_sequence ()

    void
    as_yaml_emit_sequence (yaml_emitter_t *emitter,
                           const gchar *key,
                           GPtrArray *list);

as_yaml_emit_sequence

### as_yaml_emit_sequence_from_str_array ()

    void
    as_yaml_emit_sequence_from_str_array (yaml_emitter_t *emitter,
                                          const gchar *key,
                                          GPtrArray *array);

as_yaml_emit_sequence_from_str_array

### as_yaml_emit_localized_strv ()

    void
    as_yaml_emit_localized_strv (yaml_emitter_t *emitter,
                                 const gchar *key,
                                 GHashTable *ltab);

as_yaml_emit_localized_strv

### as_yaml_get_localized_node ()

    GNode *
    as_yaml_get_localized_node (AsContext *ctx,
                                GNode *node,
                                gchar *locale_override);

as_yaml_get_localized_node

### as_yaml_get_localized_value ()

    gchar *
    as_yaml_get_localized_value (AsContext *ctx,
                                 GNode *node,
                                 gchar *locale_override);

Get localized string from a translated DEP-11 key

as_yaml_get_localized_value

### as_yaml_emit_localized_entry ()

    void
    as_yaml_emit_localized_entry (yaml_emitter_t *emitter,
                                  const gchar *key,
                                  GHashTable *ltab);

as_yaml_emit_localized_entry

### as_yaml_emit_long_localized_entry ()

    void
    as_yaml_emit_long_localized_entry (yaml_emitter_t *emitter,
                                       const gchar *key,
                                       GHashTable *ltab);

as_yaml_emit_long_localized_entry

### as_yaml_list_to_str_array ()

    void
    as_yaml_list_to_str_array (GNode *node,
                               GPtrArray *array);

as_yaml_list_to_str_array

## Types and Values