Top | ![]() |
![]() |
![]() |
![]() |
ModulemdBuildConfig *
modulemd_build_config_new (void
);
Initialize a new ModulemdBuildConfig representing a module build configuration.
Since: 2.10
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.10
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.10
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.10
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.10
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.10
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.10
void
modulemd_build_config_clear_runtime_requirements
(ModulemdBuildConfig *self
);
Remove all run-time dependencies for this module.
Since: 2.10
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.10
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.10
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.10
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.10
void
modulemd_build_config_clear_buildtime_requirements
(ModulemdBuildConfig *self
);
Remove all build-time dependencies for this module.
Since: 2.10
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.10
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.10
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.10
ModulemdBuildopts *
modulemd_build_config_get_buildopts (ModulemdBuildConfig *self
);
Since: 2.10
ModulemdBuildConfig * modulemd_build_config_parse_yaml (yaml_parser_t *parser
,gboolean strict
,GError **error
);
parser |
A yaml_parser_t positioned at the start of a configuration entry of a ModulemdPackager v3 YAML document. |
|
strict |
Whether to ignore unknown keys in the YAML |
|
error |
A GError explaining any failure to complete the parsing. |
[out] |
A newly-constructed ModulemdBuildConfig object
populated from the data in the provided YAML. Returns NULL and sets error
appropriately if the document couldn't be parsed successfully or failed
validation.
[transfer full]
Since: 2.10
gboolean modulemd_build_config_emit_yaml (ModulemdBuildConfig *self
,yaml_emitter_t *emitter
,GError **error
);
self |
This ModulemdBuildConfig object. |
|
emitter |
A libyaml emitter object positioned where a BuidConfig belongs in the YAML document. |
[inout] |
error |
A GError that will return the reason for an emission or validation error. |
[out] |
TRUE if the BuildConfig was emitted successfully. FALSE and sets
error
appropriately if the YAML could not be emitted.
Since: 2.10
gboolean modulemd_build_config_validate (ModulemdBuildConfig *buildconfig
,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.10
ModulemdBuildConfig *
modulemd_build_config_copy (ModulemdBuildConfig *self
);
Since: 2.10
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.10