Top |
Modulemd.IntentModulemd.Intent — Overrides ModulemdDefaults when a specific system "purpose" has been set. |
ModulemdIntent *
modulemd_intent_new (const gchar *name
);
Since: 1.5
void modulemd_intent_set_intent_name (ModulemdIntent *self
,const gchar *name
);
Sets the "module-name" property.
Since: 1.5
const gchar *
modulemd_intent_peek_intent_name (ModulemdIntent *self
);
Retrieves the module name to which these defaults apply.
a string containing the "module-name" property. This string must
not be modified or freed. If you need to do so, use
modulemd_intent_dup_intent_name()
instead.
Since: 1.5
gchar *
modulemd_intent_dup_intent_name (ModulemdIntent *self
);
Retrieves the module name to which these defaults apply.
a string containing the "module-name" property. This string must be
freed with g_free()
when the caller is done with it.
Since: 1.5
void modulemd_intent_set_default_stream (ModulemdIntent *self
,const gchar *stream
);
Sets the "default-stream" property.
Since: 1.5
const gchar *
modulemd_intent_peek_default_stream (ModulemdIntent *self
);
Retrieves the default stream.
a string containing the "default-stream" property. This string
must not be modified or freed. If you need to do so, use
modulemd_intent_dup_default_stream()
instead.
Since: 1.5
gchar *
modulemd_intent_dup_default_stream (ModulemdIntent *self
);
Retrieves the default stream.
a string containing the "default-stream" property. This string must
be freed with g_free()
when the caller is done with it.
Since: 1.5
void modulemd_intent_set_profiles_for_stream (ModulemdIntent *self
,const gchar *stream
,gchar **profiles
);
stream |
The name of the stream getting default profiles |
|
profiles |
The set of profile names to install by default when installing this stream of the module. |
[array zero-terminated=1][transfer none] |
Since: 1.5
void modulemd_intent_assign_profiles_for_stream (ModulemdIntent *self
,const gchar *stream
,ModulemdSimpleSet *profiles
);
stream |
The name of the stream getting default profiles |
|
profiles |
A ModulemdSimpleSet of profile names to install by default when installing this stream of the module. |
Since: 1.5
void modulemd_intent_set_profile_defaults (ModulemdIntent *self
,GHashTable *profile_defaults
);
Assigns the hash table of streams and their default profiles
Since: 1.5
gchar ** modulemd_intent_dup_profiles_for_stream (ModulemdIntent *self
,const gchar *stream
);
A zero-terminated array of strings that provides the list of profiles that should be installed by default when this stream is specified.
[array zero-terminated=1][transfer full]
Since: 1.5
GHashTable *
modulemd_intent_peek_profile_defaults (ModulemdIntent *self
);
Retrieves a hash table of the profile defaults.
A GHashTable
containing the set of profile defaults for streams of this module. This hash
table is maintained by the ModulemdIntent object and must not be freed or
modified. If modification is necessary, use
modulemd_intent_dup_profile_defaults()
instead.
[element-type utf8 ModulemdSimpleSet][transfer none]
Since: 1.5
GHashTable *
modulemd_intent_dup_profile_defaults (ModulemdIntent *self
);
Retrieves a copy of the hash table of profile defaults.
A
GHashTable containing the set of profile defaults for streams of this
module. This hash table is a copy and must be freed with
g_hash_table_unref()
when the caller is finished with it. The elements it
contains are maintained by the hash table and will be automatically freed
when their key is removed or the hash table is freed.
[element-type utf8 ModulemdSimpleSet][transfer container]
Since: 1.5
ModulemdIntent *
modulemd_intent_copy (ModulemdIntent *self
);
Makes a deep copy of a ModulemdIntent
Since: 1.5