as-checksum-private 3 APPSTREAM Library
as-checksum-private

## Functions

gboolean | as_checksum_load_from_xml ()
void | as_checksum_to_xml_node ()
gboolean | as_checksum_load_from_yaml ()
void | as_checksum_emit_yaml ()
void | as_checksum_to_variant ()
gboolean | as_checksum_set_from_variant ()

## Description

## Functions

### as_checksum_load_from_xml ()

    gboolean
    as_checksum_load_from_xml (AsChecksum *cs,
                               AsContext *ctx,
                               xmlNode *node,
                               GError **error);

Loads data from an XML node.

#### Parameters

cs | a AsChecksum instance. |
ctx | the AppStream document context. |
node | the XML node. |
error | a GError. |

as_checksum_load_from_xml

### as_checksum_to_xml_node ()

    void
    as_checksum_to_xml_node (AsChecksum *cs,
                             AsContext *ctx,
                             xmlNode *root);

Serializes the data to an XML node.

#### Parameters

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

as_checksum_to_xml_node

### as_checksum_load_from_yaml ()

    gboolean
    as_checksum_load_from_yaml (AsChecksum *cs,
                                AsContext *ctx,
                                GNode *node,
                                GError **error);

Loads data from a YAML field.

#### Parameters

cs | a AsChecksum instance. |
ctx | the AppStream document context. |
node | the YAML node. |
error | a GError. |

as_checksum_load_from_yaml

### as_checksum_emit_yaml ()

    void
    as_checksum_emit_yaml (AsChecksum *cs,
                           AsContext *ctx,
                           yaml_emitter_t *emitter);

Emit YAML data for this object.

#### Parameters

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

as_checksum_emit_yaml

### as_checksum_to_variant ()

    void
    as_checksum_to_variant (AsChecksum *cs,
                            GVariantBuilder *builder);

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

#### Parameters

cs | a AsChecksum instance. |
builder | A GVariantBuilder |

as_checksum_to_variant

### as_checksum_set_from_variant ()

    gboolean
    as_checksum_set_from_variant (AsChecksum *cs,
                                  GVariant *variant);

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

#### Parameters

cs | a AsChecksum instance. |
variant | The GVariant to read from. |

as_checksum_set_from_variant

## Types and Values