as-icon-private 3 APPSTREAM Library
as-icon-private

## Functions

gboolean | as_icon_load_from_xml ()
void | as_icon_to_xml_node ()
void | as_icon_to_variant ()
gboolean | as_icon_set_from_variant ()

## Description

## Functions

### as_icon_load_from_xml ()

    gboolean
    as_icon_load_from_xml (AsIcon *icon,
                           AsContext *ctx,
                           xmlNode *node,
                           GError **error);

Loads data from an XML node.

#### Parameters

icon | an AsIcon |
ctx | the AppStream document context. |
node | the XML node. |
error | a GError. |

as_icon_load_from_xml

### as_icon_to_xml_node ()

    void
    as_icon_to_xml_node (AsIcon *icon,
                         AsContext *ctx,
                         xmlNode *root);

Serializes the data to an XML node.

#### Parameters

icon | an AsIcon |
ctx | the AppStream document context. |
root | XML node to attach the new nodes to. |

as_icon_to_xml_node

### as_icon_to_variant ()

    void
    as_icon_to_variant (AsIcon *icon,
                        GVariantBuilder *builder);

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

#### Parameters

icon | an AsIcon |
builder | A GVariantBuilder |

as_icon_to_variant

### as_icon_set_from_variant ()

    gboolean
    as_icon_set_from_variant (AsIcon *icon,
                              GVariant *variant);

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

#### Parameters

icon | an AsIcon |
variant | The GVariant to read from. |

as_icon_set_from_variant

## Types and Values