Top |
Modulemd.ImprovedModuleModulemd.ImprovedModule — Collects all information about a module: all of its streams, defaults, etc. |
ModulemdImprovedModule *
modulemd_improvedmodule_new (const gchar *name
);
Since: 1.6
void modulemd_improvedmodule_add_stream (ModulemdImprovedModule *self
,ModulemdModuleStream *stream
);
Add a ModulemdModuleStream to this module. If this stream name is already in use, this function will overwrite the existing value. If the module name does not match, this function will silently ignore this stream.
Since : 1.6
ModulemdModuleStream * modulemd_improvedmodule_get_stream_by_name (ModulemdImprovedModule *self
,const gchar *stream_name
);
A ModulemModuleStream representing the requested module stream. NULL if the stream name was not found.
Since: 1.6
GHashTable *
modulemd_improvedmodule_get_streams (ModulemdImprovedModule *self
);
A
GHashTable containing all ModulemModuleStream objects for this module.
This hash table must be freed with g_hash_table_unref()
.
[element-type utf8 ModulemdModuleStream][transfer container]
Since: 1.6
void modulemd_improvedmodule_set_name (ModulemdImprovedModule *self
,const gchar *module_name
);
Sets the module name.
Since: 1.6
gchar *
modulemd_improvedmodule_get_name (ModulemdImprovedModule *self
);
Gets the name of this module.
Since: 1.6
const gchar *
modulemd_improvedmodule_peek_name (ModulemdImprovedModule *self
);
Gets the name of this module.
[skip]
Since: 1.6
void modulemd_improvedmodule_set_defaults (ModulemdImprovedModule *self
,ModulemdDefaults *defaults
);
Set the default stream and profiles for this module. Makes no changes if the defaults do not apply to this module.
defaults |
A ModulemdDefaults object describing the defaults for this module. |
[transfer none][nullable] |
Since: 1.6
ModulemdDefaults *
modulemd_improvedmodule_get_defaults (ModulemdImprovedModule *self
);
Returns the ModulemdDefaults object for this module.
a ModulemdDefaults object if set, NULL otherwise.
This object must be freed with g_object_unref()
.
Since: 1.6
ModulemdDefaults *
modulemd_improvedmodule_peek_defaults (ModulemdImprovedModule *self
);
Returns the ModulemdDefaults object for this module.
[skip]
a ModulemdDefaults object if set, NULL otherwise. This object must be not be modified or freed.
Since: 1.6
ModulemdImprovedModule *
modulemd_improvedmodule_copy (ModulemdImprovedModule *self
);
Make a copy of this module.
Since: 1.6
void modulemd_improvedmodule_dump (ModulemdImprovedModule *self
,const gchar *yaml_file
,GError **error
);
Writes this module out to a YAML document on disk.
Since: 1.6
gchar * modulemd_improvedmodule_dumps (ModulemdImprovedModule *self
,GError **error
);
Writes this module out to a YAML document string.
A string containing a YAML representation of
this module and all of its streams. This string must be freed with g_free()
.
Since: 1.6