as-launchable-private 3 APPSTREAM Library
as-launchable-private

## Functions

void | as_launchable_to_xml_node ()
gboolean | as_launchable_load_from_yaml ()
void | as_launchable_emit_yaml ()
void | as_launchable_to_variant ()
gboolean | as_launchable_set_from_variant ()

## Description

## Functions

### as_launchable_to_xml_node ()

    void
    as_launchable_to_xml_node (AsLaunchable *launchable,
                               AsContext *ctx,
                               xmlNode *root);

Serializes the data to an XML node.

#### Parameters

launchable | an AsLaunchable |
ctx | the AppStream document context. |
root | XML node to attach the new nodes to. |

as_launchable_to_xml_node

### as_launchable_load_from_yaml ()

    gboolean
    as_launchable_load_from_yaml (AsLaunchable *launch,
                                  AsContext *ctx,
                                  GNode *node,
                                  GError **error);

Loads data from a YAML field.

#### Parameters

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

as_launchable_load_from_yaml

### as_launchable_emit_yaml ()

    void
    as_launchable_emit_yaml (AsLaunchable *launch,
                             AsContext *ctx,
                             yaml_emitter_t *emitter);

Emit YAML data for this object.

#### Parameters

ctx | the AppStream document context. |
emitter | The YAML emitter to emit data on. |

as_launchable_emit_yaml

### as_launchable_to_variant ()

    void
    as_launchable_to_variant (AsLaunchable *launch,
                              GVariantBuilder *builder);

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

#### Parameters

builder | A GVariantBuilder |

as_launchable_to_variant

### as_launchable_set_from_variant ()

    gboolean
    as_launchable_set_from_variant (AsLaunchable *launch,
                                    GVariant *variant);

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

#### Parameters

variant | The GVariant to read from. |

as_launchable_set_from_variant

## Types and Values