Modulemd.Module (Private)

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

Stability Level

Private, unless otherwise indicated

Functions

Description

Functions

modulemd_module_new ()

ModulemdModule *
modulemd_module_new (const gchar *module_name);

Parameters

module_name

The name of the module.

[in][not nullable]

Returns

A newly-allocated ModulemdModule.

[transfer full]

Since: 2.0


modulemd_module_set_defaults ()

void
modulemd_module_set_defaults (ModulemdModule *self,
                              ModulemdDefaults *defaults);

Parameters

self

This ModulemdModule object

 

defaults

A ModulemdDefaults object to associate with this ModulemdModule. If the module_name in the ModulemdDefaults object does not match this module, it will be silently ignored.

 

Since: 2.0


modulemd_module_add_translation ()

void
modulemd_module_add_translation (ModulemdModule *self,
                                 ModulemdTranslation *translation);

modulemd_module_get_translated_streams ()

GPtrArray *
modulemd_module_get_translated_streams
                               (ModulemdModule *self);

Parameters

self

This ModulemdModule object

 

Returns

A list of streams for which translations have been added, sorted by stream name.

[transfer container]

Since: 2.0


modulemd_module_get_translation ()

ModulemdTranslation *
modulemd_module_get_translation (ModulemdModule *self,
                                 const gchar *stream);

modulemd_module_add_stream ()

void
modulemd_module_add_stream (ModulemdModule *self,
                            ModulemdModuleStream *stream);

Parameters

self

This ModulemdModule object

 

stream

A ModulemdModuleStream object to associate with this ModulemdModule.

 

Since: 2.0

Types and Values