Top |
ModulemdDefaultsV1 *
modulemd_defaults_v1_new (const gchar *module_name
);
Since: 2.0
void modulemd_defaults_v1_set_default_stream (ModulemdDefaultsV1 *self
,const gchar *default_stream
,const gchar *intent
);
Set the default stream for this module.
self |
This ModulemdDefaultsV1 object. |
[in] |
default_stream |
The name of the default stream for this module. If NULL, it will remove the default stream. |
[in][nullable] |
intent |
If non-NULL, this indicates the system-intent to apply this default stream. If NULL, it will be added as common defaults. |
[in][nullable] |
Since: 2.0
const gchar * modulemd_defaults_v1_get_default_stream (ModulemdDefaultsV1 *self
,const gchar *intent
);
self |
This ModulemdDefaultsV1 object. |
[in] |
intent |
The name of the system intent whose default stream will be retrieved. If left NULL or the specified intent has no different default, it will return the generic default stream for this module. |
[in][nullable] |
Since: 2.0
GStrv modulemd_defaults_v1_get_streams_with_default_profiles_as_strv (ModulemdDefaultsV1 *self
,const gchar *intent
);
[rename-to modulemd_defaults_v1_get_streams_with_default_profiles]
self |
This ModulemdDefaultsV1 object. |
[in] |
intent |
The name of the system intent whose stream profiles will be retrieved. If left NULL or the specified intent has no separate defaults for this module, it will return the generic stream profiles. |
[in][nullable] |
Since: 2.0
void modulemd_defaults_v1_add_default_profile_for_stream (ModulemdDefaultsV1 *self
,const gchar *stream_name
,const gchar *profile_name
,const gchar *intent
);
Add a profile that will be installed for this stream if none are explicitly specified by the user. This function may be called any number of times for the same stream and will deduplicate input.
self |
This ModulemdDefaultsV1 object. |
[in] |
stream_name |
The name of the module stream to which to add this default profile. |
[in] |
profile_name |
The name of the default profile to add. |
[in] |
intent |
The name of the system intent to add profile defaults to. If NULL, this sets the generic fallback profiles for the stream. |
[in][nullable] |
Since: 2.0
void modulemd_defaults_v1_set_empty_default_profiles_for_stream (ModulemdDefaultsV1 *self
,const gchar *stream_name
,const gchar *intent
);
Sets the default profiles for stream_name
to the empty set. When output to
a file, it will appear as stream_name: []
.
self |
This ModulemdDefaultsV1 object. |
[in] |
stream_name |
The name of the module stream to which to add this default profile. |
[in] |
intent |
The name of the system intent from which to clear the profile defaults for this stream. |
[in][nullable] |
Since: 2.0
void modulemd_defaults_v1_remove_default_profiles_for_stream (ModulemdDefaultsV1 *self
,const gchar *stream_name
,const gchar *intent
);
Removes this stream from the list of profiles entirely. It will not appear in the output document.
self |
This ModulemdDefaultsV1 object. |
[in] |
stream_name |
The name of the module stream to which to add this default profile. |
[in] |
intent |
The name of the system intent from which to remove the profile defaults for this stream. |
[in][nullable] |
Since: 2.0
GStrv modulemd_defaults_v1_get_default_profiles_for_stream_as_strv (ModulemdDefaultsV1 *self
,const gchar *stream_name
,const gchar *intent
);
[rename-to modulemd_defaults_v1_get_default_profiles_for_stream]
self |
This ModulemdDefaultsV1 object. |
[in] |
stream_name |
The name of the string to retrieve the default profiles for. |
[in] |
intent |
The name of the system intent from which to retrieve the profile defaults for this stream. |
[in][nullable] |
A sorted list of unique profiles to be installed by default for this stream. NULL, if this stream_name is not present in the defaults.
Since: 2.0