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
);
modulemd_improvedmodule_get_stream_by_name
has been deprecated since version 1.7 and should not be used in newly-written code.
Use get_stream_by_nsvc()
or get_streams_by_name()
instead.
A ModulemModuleStream representing the requested module stream. NULL if the stream name was not found. If there is more than one version and/or context for this stream, it will return one in a non-deterministic manner. This function remains for backwards-compatibility, but it should never be used.
Since: 1.6
ModulemdModuleStream * modulemd_improvedmodule_get_stream_by_nsvc (ModulemdImprovedModule *self
,const gchar *nsvc
);
A ModulemModuleStream representing the requested module stream. NULL if the stream (name, version, context) was not found.
Since: 1.7
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
GPtrArray * modulemd_improvedmodule_get_streams_by_name (ModulemdImprovedModule *self
,const gchar *stream_name
);
A
GPtrArray containing all ModulemModuleStream objects for this module which
matches the requested stream_name. Returns NULL if no streams matched this
name.
This GPtrArray must be freed with g_ptr_array_unref()
.
[element-type 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