Top | ![]() |
![]() |
![]() |
![]() |
ModulemdBuildConfig *
modulemd_build_config_new (void
);
Initialize a new ModulemdBuildConfig representing a module build configuration.
Since: 2.11
void modulemd_build_config_set_context (ModulemdBuildConfig *self
,const gchar *context
);
Set the context that this build configuration produces.
Note: For consistency in the API, this function does not validate the input
context
. This validation will be performed as part of the
modulemd_build_config_validate()
routine where it can be reported cleanly.
self |
This ModulemdBuildConfig object. |
|
context |
A string of up to ten alphanumeric characters. |
Since: 2.11
const gchar *
modulemd_build_config_get_context (ModulemdBuildConfig *self
);
Get the context that this build configuration produces.
Note: This function returns the context as stored internally. If you want to
be sure that it is in the correct format, call
modulemd_build_config_validate()
first.
Since: 2.11
void modulemd_build_config_set_platform (ModulemdBuildConfig *self
,const gchar *platform
);
Set the platform that this build configuration applies to.
self |
This ModulemdBuildConfig object. |
|
platform |
A string of up to ten alphanumeric characters. |
Since: 2.11
const gchar *
modulemd_build_config_get_platform (ModulemdBuildConfig *self
);
Get the platform that this build configuration applies to.
The string representing the platform that this build configuration applies to.
[transfer none]
Since: 2.11
void modulemd_build_config_add_runtime_requirement (ModulemdBuildConfig *self
,const gchar *module_name
,const gchar *stream_name
);
Add a build-time dependency for this module.
self |
This ModulemdBuildConfig object. |
[in] |
module_name |
The name of the module to depend on. |
[in] |
stream_name |
The name of the module stream to depend on. |
[in] |
Since: 2.11
void modulemd_build_config_remove_runtime_requirement (ModulemdBuildConfig *self
,const gchar *module_name
);
Remove a run-time dependency for this module.
self |
This ModulemdBuildConfig object. |
[in] |
module_name |
The name of the module to be removed. |
[in] |
Since: 2.11
void
modulemd_build_config_clear_runtime_requirements
(ModulemdBuildConfig *self
);
Remove all run-time dependencies for this module.
Since: 2.11
const gchar * modulemd_build_config_get_runtime_requirement_stream (ModulemdBuildConfig *self
,const gchar *module_name
);
self |
This ModulemdBuildConfig object. |
[in] |
module_name |
The name of the module this module depends on. |
[in] |
The name of the stream matching this module name in the run-time dependencies.
[transfer none]
Since: 2.11
GStrv
modulemd_build_config_get_runtime_modules_as_strv
(ModulemdBuildConfig *self
);
An ordered GStrv list of module names that this module depends on at run-time.
[transfer full]
Since: 2.11
void modulemd_build_config_add_buildtime_requirement (ModulemdBuildConfig *self
,const gchar *module_name
,const gchar *stream_name
);
Add a build-time dependency for this module.
self |
This ModulemdBuildConfig object. |
[in] |
module_name |
The name of the module to depend on. |
[in] |
stream_name |
The name of the module stream to depend on. |
[in] |
Since: 2.11
void modulemd_build_config_remove_buildtime_requirement (ModulemdBuildConfig *self
,const gchar *module_name
);
Remove a build-time dependency for this module.
self |
This ModulemdBuildConfig object. |
[in] |
module_name |
The name of the module to be removed. |
[in] |
Since: 2.11
void
modulemd_build_config_clear_buildtime_requirements
(ModulemdBuildConfig *self
);
Remove all build-time dependencies for this module.
Since: 2.11
const gchar * modulemd_build_config_get_buildtime_requirement_stream (ModulemdBuildConfig *self
,const gchar *module_name
);
self |
This ModulemdBuildConfig object. |
[in] |
module_name |
The name of the module this module depends on. |
[in] |
The name of the stream matching this module name in the build-time dependencies.
[transfer none]
Since: 2.11
GStrv
modulemd_build_config_get_buildtime_modules_as_strv
(ModulemdBuildConfig *self
);
An ordered GStrv list of module names that this module depends on at build-time.
[transfer full]
Since: 2.11
void modulemd_build_config_set_buildopts (ModulemdBuildConfig *self
,ModulemdBuildopts *buildopts
);
Set build options for this module's components.
self |
This ModulemdBuildConfig object. |
[in] |
buildopts |
A ModulemdBuildopts object describing build options that apply globally to components in this module. |
[in][transfer none] |
Since: 2.11
ModulemdBuildopts *
modulemd_build_config_get_buildopts (ModulemdBuildConfig *self
);
Since: 2.11
gboolean modulemd_build_config_validate (ModulemdBuildConfig *self
,GError **error
);
Determine if this ModulemdBuildConfig is valid according to the YAML specification.
self |
This ModulemdBuildConfig object. |
[in] |
error |
A GError explaining any validation failure. |
[out] |
TRUE if validation passes. Returns FALSE and sets error
appropriately on validation failure.
Since: 2.11
ModulemdBuildConfig *
modulemd_build_config_copy (ModulemdBuildConfig *self
);
Since: 2.11
gboolean modulemd_build_config_equals (ModulemdBuildConfig *self_1
,ModulemdBuildConfig *self_2
);
self_1 |
A pointer to a ModulemdBuildConfig object. |
|
self_2 |
A pointer to a ModulemdBuildConfig object. |
TRUE, if self_1
and self_2
are pointers to ModulemdBuildConfig
objects containing equivalent data. FALSE, otherwise.
Since: 2.11
gint modulemd_build_config_compare (ModulemdBuildConfig *self_1
,ModulemdBuildConfig *self_2
);
self_1 |
A pointer to a ModulemdBuildConfig object. |
[in] |
self_2 |
A pointer to a ModulemdBuildConfig object. |
[in] |
Less than zero if self_1
sorts less than self_2
, zero for equal,
greater than zero if self_1
is greater than self_2
.
Since: 2.11