Modulemd.SubdocumentInfo (Private)

Modulemd.SubdocumentInfo (Private) — Modulemd.SubdocumentInfo methods that should be used only by internal consumers.

Stability Level

Private, unless otherwise indicated

Functions

Description

Functions

modulemd_subdocument_info_new ()

ModulemdSubdocumentInfo *
modulemd_subdocument_info_new (void);

Returns

A newly-allocated ModulemdSubdocumentInfo.

[transfer full]

Since: 2.0


modulemd_subdocument_info_copy ()

ModulemdSubdocumentInfo *
modulemd_subdocument_info_copy (ModulemdSubdocumentInfo *self);

Parameters

Returns

A deep copy of self .

[transfer full]

Since: 2.0


modulemd_subdocument_info_set_doctype ()

void
modulemd_subdocument_info_set_doctype (ModulemdSubdocumentInfo *self,
                                       enum ModulemdYamlDocumentType doctype);

Parameters

self

This ModulemdSubdocumentInfo

 

doctype

The ModulemdYamlDocumentType represented by this subdocument

 

Since: 2.0


modulemd_subdocument_info_get_doctype ()

enum ModulemdYamlDocumentType
modulemd_subdocument_info_get_doctype (ModulemdSubdocumentInfo *self);

Parameters

Returns

The type of subdocument represented by this SubdocumentInfo

Since: 2.0


modulemd_subdocument_info_set_mdversion ()

void
modulemd_subdocument_info_set_mdversion
                               (ModulemdSubdocumentInfo *self,
                                guint64 mdversion);

Parameters

self

This ModulemdSubdocumentInfo

 

mdversion

The metadata version

 

Since: 2.0


modulemd_subdocument_info_get_mdversion ()

guint64
modulemd_subdocument_info_get_mdversion
                               (ModulemdSubdocumentInfo *self);

Parameters

Returns

The metadata version

Since: 2.0


modulemd_subdocument_info_set_yaml ()

void
modulemd_subdocument_info_set_yaml (ModulemdSubdocumentInfo *self,
                                    const gchar *contents);

Parameters

self

This ModulemdSubdocumentInfo

 

contents

The contents of the document

 

Since: 2.0


modulemd_subdocument_info_set_gerror ()

void
modulemd_subdocument_info_set_gerror (ModulemdSubdocumentInfo *self,
                                      const GError *error);

Parameters

self

This ModulemdSubdocumentInfo

 

error

The error

 

Since: 2.0


modulemd_subdocument_info_get_data_parser ()

gboolean
modulemd_subdocument_info_get_data_parser
                               (ModulemdSubdocumentInfo *self,
                                yaml_parser_t *parser,
                                GError **error);

Parameters

self

This ModulemdSubdocumentInfo

 

parser

An unconfigured libyaml parser.

[inout]

Since: 2.0

Types and Values