Modulemd.Component (Private)

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

Stability Level

Private, unless otherwise indicated

Functions

Description

Functions

modulemd_component_parse_buildafter ()

gboolean
modulemd_component_parse_buildafter (ModulemdComponent *self,
                                     yaml_parser_t *parser,
                                     GError **error);

Parameters

self

This ModulemdComponent

 

emitter

A libyaml emitter object positioned just after the "buildafter" key in a ModulemdComponent section of a YAML document.

[inout]

error

A GError that will return the reason for a parse failure.

[out]

Returns

TRUE if the buildafter list could be parsed successfully.

Since: 2.2


modulemd_component_parse_buildonly ()

gboolean
modulemd_component_parse_buildonly (ModulemdComponent *self,
                                    yaml_parser_t *parser,
                                    GError **error);

Parameters

self

This ModulemdComponent

 

emitter

A libyaml emitter object positioned just after the "buildonly" key in a ModulemdComponent section of a YAML document.

[inout]

error

A GError that will return the reason for a parse failure.

[out]

Returns

TRUE if the buildafter list could be parsed successfully.

Since: 2.2


modulemd_component_has_buildafter ()

gboolean
modulemd_component_has_buildafter (ModulemdComponent *self);

Parameters

self

This ModulemdComponent

 

Returns

Whether one or more buildafter entries have been added to this component.

Since: 2.2


modulemd_component_get_buildafter_internal ()

GHashTable *
modulemd_component_get_buildafter_internal
                               (ModulemdComponent *self);

Parameters

Returns

The internal hash table representing the set of buildafter dependencies.

Since: 2.2


modulemd_component_emit_yaml_start ()

gboolean
modulemd_component_emit_yaml_start (ModulemdComponent *self,
                                    yaml_emitter_t *emitter,
                                    GError **error);

Parameters

self

This ModulemdComponent

 

emitter

A libyaml emitter object positioned where Component start belongs in the YAML document.

[inout]

error

A GError that will return the reason for an emission error.

[out]

Returns

TRUE if the component header was emitted succesfully. FALSE and sets error appropriately if the YAML could not be emitted.

Since: 2.0


modulemd_component_emit_yaml_build_common ()

gboolean
modulemd_component_emit_yaml_build_common
                               (ModulemdComponent *self,
                                yaml_emitter_t *emitter,
                                GError **error);

Parameters

self

This ModulemdComponent

 

emitter

A libyaml emitter object positioned where a Component's buildorder, buildafter and/or buildonly item(s) should appear in the YAML document.

[inout]

error

A GError that will return the reason for an emission error.

[out]

Returns

TRUE if the component buildorder was emitted succesfully. FALSE and sets error appropriately if the YAML could not be emitted.

Since: 2.2

Types and Values