as-image-private 3 APPSTREAM Library
as-image-private

## Functions

gboolean | as_image_load_from_xml ()
void | as_image_to_xml_node ()
gboolean | as_image_load_from_yaml ()
void | as_image_emit_yaml ()
void | as_image_to_variant ()
gboolean | as_image_set_from_variant ()

## Description

## Functions

### as_image_load_from_xml ()

    gboolean
    as_image_load_from_xml (AsImage *image,
                            AsContext *ctx,
                            xmlNode *node,
                            GError **error);

Loads image data from an XML node.

#### Parameters

image | a AsImage instance. |
ctx | the AppStream document context. |
node | the XML node. |
error | a GError. |

as_image_load_from_xml

### as_image_to_xml_node ()

    void
    as_image_to_xml_node (AsImage *image,
                          AsContext *ctx,
                          xmlNode *root);

Serializes the data to an XML node.

#### Parameters

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

as_image_to_xml_node

### as_image_load_from_yaml ()

    gboolean
    as_image_load_from_yaml (AsImage *image,
                             AsContext *ctx,
                             GNode *node,
                             AsImageKind kind,
                             GError **error);

Loads data from a YAML field.

#### Parameters

image | a AsImage instance. |
ctx | the AppStream document context. |
node | the YAML node. |
error | a GError. |

as_image_load_from_yaml

### as_image_emit_yaml ()

    void
    as_image_emit_yaml (AsImage *image,
                        AsContext *ctx,
                        yaml_emitter_t *emitter);

Emit YAML data for this object.

#### Parameters

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

as_image_emit_yaml

### as_image_to_variant ()

    void
    as_image_to_variant (AsImage *image,
                         GVariantBuilder *builder);

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

#### Parameters

image | An AsImage instance. |
builder | A GVariantBuilder |

as_image_to_variant

### as_image_set_from_variant ()

    gboolean
    as_image_set_from_variant (AsImage *image,
                               GVariant *variant);

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

#### Parameters

image | An AsImage instance. |
variant | The GVariant to read from. |

as_image_set_from_variant

## Types and Values