as-suggested-private 3 APPSTREAM Library
as-suggested-private

## Functions

gboolean | as_suggested_load_from_xml ()
void | as_suggested_to_xml_node ()
gboolean | as_suggested_load_from_yaml ()
void | as_suggested_emit_yaml ()
void | as_suggested_to_variant ()
gboolean | as_suggested_set_from_variant ()

## Description

## Functions

### as_suggested_load_from_xml ()

    gboolean
    as_suggested_load_from_xml (AsSuggested *suggested,
                                AsContext *ctx,
                                xmlNode *node,
                                GError **error);

Loads data from an XML node.

#### Parameters

suggested | a AsSuggested instance. |
ctx | the AppStream document context. |
node | the XML node. |
error | a GError. |

as_suggested_load_from_xml

### as_suggested_to_xml_node ()

    void
    as_suggested_to_xml_node (AsSuggested *suggested,
                              AsContext *ctx,
                              xmlNode *root);

Serializes the data to an XML node.

#### Parameters

suggested | a AsSuggested instance. |
ctx | the AppStream document context. |
root | XML node to attach the new nodes to. |

as_suggested_to_xml_node

### as_suggested_load_from_yaml ()

    gboolean
    as_suggested_load_from_yaml (AsSuggested *suggested,
                                 AsContext *ctx,
                                 GNode *node,
                                 GError **error);

Loads data from a YAML field.

#### Parameters

suggested | a AsSuggested instance. |
ctx | the AppStream document context. |
node | the YAML node. |
error | a GError. |

as_suggested_load_from_yaml

### as_suggested_emit_yaml ()

    void
    as_suggested_emit_yaml (AsSuggested *suggested,
                            AsContext *ctx,
                            yaml_emitter_t *emitter);

Emit YAML data for this object.

#### Parameters

suggested | a AsSuggested instance. |
ctx | the AppStream document context. |
emitter | The YAML emitter to emit data on. |

as_suggested_emit_yaml

### as_suggested_to_variant ()

    void
    as_suggested_to_variant (AsSuggested *suggested,
                             GVariantBuilder *builder);

Serialize the current active state of this object to a GVariant for use in the on-disk binary cache.

#### Parameters

suggested | a AsSuggested instance. |
builder | A GVariantBuilder |

as_suggested_to_variant

### as_suggested_set_from_variant ()

    gboolean
    as_suggested_set_from_variant (AsSuggested *suggested,
                                   GVariant *variant);

Read the active state of this object from a GVariant serialization. This is used by the on-disk binary cache.

#### Parameters

suggested | a AsSuggested instance. |
variant | The GVariant to read from. |

as_suggested_set_from_variant

## Types and Values