Top | ![]() |
![]() |
![]() |
![]() |
ModulemdModule *
modulemd_module_new_from_file (const gchar *yaml_file
);
Allocates a new ModulemdModule from a file.
void modulemd_module_new_all_from_file (const gchar *yaml_file
,ModulemdModule ***_modules
);
Allocates a list of new ModulemdModule from a file.
yaml_file |
A YAML file containing the module metadata. |
|
_modules |
A zero-terminated array of modules contained in this document. |
[out][array zero-terminated=1][element-type ModulemdModule][transfer container] |
ModulemdModule *
modulemd_module_new_from_string (const gchar *yaml_string
);
Allocates a new ModulemdModule from a string.
void modulemd_module_new_all_from_string (const gchar *yaml_string
,ModulemdModule ***_modules
);
Allocates a list of new ModulemdModule from a string.
yaml_string |
A YAML string containing the module metadata. |
|
_modules |
A zero-terminated array of modules contained in this document. |
[out][array zero-terminated=1][element-type ModulemdModule][transfer container] |
void modulemd_module_dump (ModulemdModule *self
,const gchar *yaml_file
);
Writes this module out to a YAML document on disk.
gchar *
modulemd_module_dumps (ModulemdModule *self
);
Writes this module out to a YAML document string.
void modulemd_module_dump_all (GPtrArray *module_array
,const gchar *yaml_file
);
This function writes out a file containing one or more YAML documents generated from the supplied modules.
module_array |
A zero-terminated array of modules to be output. |
[array zero-terminated=1][element-type ModulemdModule][transfer container] |
gchar *
modulemd_module_dumps_all (GPtrArray *module_array
);
This function returns an allocated string containing one or more YAML documents generated from the supplied modules.
module_array |
A zero-terminated array of modules to be output. |
[array zero-terminated=1][element-type ModulemdModule][transfer container] |
void modulemd_module_set_arch (ModulemdModule *self
,const gchar *arch
);
Sets the "arch" property.
const gchar *
modulemd_module_get_arch (ModulemdModule *self
);
Retrieves the "arch" for modulemd.
void modulemd_module_set_buildrequires (ModulemdModule *self
,GHashTable *buildrequires
);
Sets the 'buildrequires' property.
GHashTable *
modulemd_module_get_buildrequires (ModulemdModule *self
);
Retrieves the "buildrequires" for modulemd.
A hash table containing the "buildrequires" property.
[element-type utf8 utf8][transfer container]
void modulemd_module_set_community (ModulemdModule *self
,const gchar *community
);
Sets the "community" property.
const gchar *
modulemd_module_get_community (ModulemdModule *self
);
Retrieves the "community" for modulemd.
void modulemd_module_set_content_licenses (ModulemdModule *self
,ModulemdSimpleSet *licenses
);
Sets the content_licenses property.
licenses |
A ModuleSimpleSet: The licenses under which the components of this module are released. |
[nullable] |
ModulemdSimpleSet *
modulemd_module_get_content_licenses (ModulemdModule *self
);
Retrieves the "content_licenses" for modulemd
void modulemd_module_set_context (ModulemdModule *self
,const gchar *context
);
Sets the "context" property.
const gchar *
modulemd_module_get_context (ModulemdModule *self
);
Retrieves the "context" for modulemd.
void modulemd_module_set_description (ModulemdModule *self
,const gchar *description
);
Sets the "description" property.
const gchar *
modulemd_module_get_description (ModulemdModule *self
);
Retrieves the "description" for modulemd.
void modulemd_module_set_documentation (ModulemdModule *self
,const gchar *documentation
);
Sets the "documentation" property.
const gchar *
modulemd_module_get_documentation (ModulemdModule *self
);
Retrieves the "documentation" for modulemd.
void modulemd_module_set_eol (ModulemdModule *self
,const GDate *date
);
Sets the "eol" property.
Note: This property is obsolete. Use "servicelevels" instead.
const GDate *
modulemd_module_get_eol (ModulemdModule *self
);
Retrieves the "eol" property.
Note: This property is obsolete. Use "servicelevels" instead.
void modulemd_module_set_mdversion (ModulemdModule *self
,const guint64 mdversion
);
Sets the "mdversion" property.
const guint64
modulemd_module_get_mdversion (ModulemdModule *self
);
Retrieves the "mdversion" for modulemd.
void modulemd_module_set_module_components (ModulemdModule *self
,GHashTable *components
);
Sets the module_components property.
components |
The hash table of module components that comprise this module. The keys are the module name, the values are a ModulemdComponentModule containing information about that module. |
[nullable][element-type utf8 ModulemdComponentModule] |
GHashTable *
modulemd_module_get_module_components (ModulemdModule *self
);
Retrieves the "module-components" for modulemd.
A hash table containing the "module-components" property.
[element-type utf8 ModulemdComponentModule][transfer container]
void modulemd_module_set_module_licenses (ModulemdModule *self
,ModulemdSimpleSet *licenses
);
Sets the module_licenses property.
licenses |
A ModuleSimpleSet: The licenses under which the components of this module are released. |
[nullable] |
ModulemdSimpleSet *
modulemd_module_get_module_licenses (ModulemdModule *self
);
Retrieves the "module_licenses" for modulemd
void modulemd_module_set_name (ModulemdModule *self
,const gchar *name
);
Sets the "name" property.
const gchar *
modulemd_module_get_name (ModulemdModule *self
);
Retrieves the "name" for modulemd.
void modulemd_module_set_profiles (ModulemdModule *self
,GHashTable *profiles
);
Sets the 'profiles' property.
profiles |
The profiles avaiable for this module. |
[nullable][element-type utf8 ModulemdProfile] |
GHashTable *
modulemd_module_get_profiles (ModulemdModule *self
);
Retrieves the "profiles" for modulemd.
A hash table containing the "profiles" property.
[element-type utf8 ModulemdProfile][transfer container]
void modulemd_module_set_requires (ModulemdModule *self
,GHashTable *requires
);
Sets the 'requires' property.
GHashTable *
modulemd_module_get_requires (ModulemdModule *self
);
Retrieves the "requires" for modulemd.
A hash table containing the "requires" property.
[element-type utf8 utf8][transfer container]
void modulemd_module_set_rpm_api (ModulemdModule *self
,ModulemdSimpleSet *apis
);
Sets the rpm_api property.
apis |
A ModuleSimpleSet: The set of binary RPM packages that form the public API for this module. |
[nullable] |
ModulemdSimpleSet *
modulemd_module_get_rpm_api (ModulemdModule *self
);
Retrieves the "rpm_api" for modulemd
void modulemd_module_set_rpm_artifacts (ModulemdModule *self
,ModulemdSimpleSet *artifacts
);
Sets the rpm_artifacts property.
artifacts |
A ModuleSimpleSet: The set of binary RPM packages that are contained in this module. Generally populated by the module build service. |
[nullable] |
ModulemdSimpleSet *
modulemd_module_get_rpm_artifacts (ModulemdModule *self
);
Retrieves the "rpm_artifacts" for modulemd
void modulemd_module_set_rpm_buildopts (ModulemdModule *self
,GHashTable *buildopts
);
Sets the 'rpm-buildopts' property.
buildopts |
A dictionary of build options to pass to rpmbuild. Currently the only recognized key is "macros". |
[nullable][element-type utf8 utf8][transfer container] |
GHashTable *
modulemd_module_get_rpm_buildopts (ModulemdModule *self
);
Retrieves the "rpm-buildopts" for modulemd.
A hash table containing the "rpm-buildopts" property.
[element-type utf8 utf8][transfer container]
void modulemd_module_set_rpm_components (ModulemdModule *self
,GHashTable *components
);
Sets the rpm_components property.
components |
The hash table of module components that comprise this module. The keys are the module name, the values are a ModulemdComponentRpm containing information about that module. |
[nullable][element-type utf8 ModulemdComponentRpm] |
GHashTable *
modulemd_module_get_rpm_components (ModulemdModule *self
);
Retrieves the "rpm-components" for modulemd.
A hash table containing the "rpm-components" property.
[element-type utf8 ModulemdComponentRpm][transfer container]
void modulemd_module_set_rpm_filter (ModulemdModule *self
,ModulemdSimpleSet *filter
);
Sets the rpm_artifacts property.
filter |
A ModuleSimpleSet: The set of binary RPM packages that are explicitly filtered out of this module. |
[nullable] |
ModulemdSimpleSet *
modulemd_module_get_rpm_filter (ModulemdModule *self
);
Retrieves the "rpm_filter" for modulemd
void modulemd_module_set_servicelevels (ModulemdModule *self
,GHashTable *servicelevels
);
Sets the service levels for the module.
servicelevels |
A hash table of ServiceLevel objects. |
[nullable][element-type utf8 ModulemdServiceLevel] |
GHashTable *
modulemd_module_get_servicelevels (ModulemdModule *self
);
Retrieves the service levels for the module
A hash table containing the service levels.
[element-type utf8 ModulemdServiceLevel][transfer container]
void modulemd_module_set_stream (ModulemdModule *self
,const gchar *stream
);
Sets the "stream" property.
const gchar *
modulemd_module_get_stream (ModulemdModule *self
);
Retrieves the "stream" for modulemd.
void modulemd_module_set_summary (ModulemdModule *self
,const gchar *summary
);
Sets the "summary" property.
const gchar *
modulemd_module_get_summary (ModulemdModule *self
);
Retrieves the "summary" for modulemd.
void modulemd_module_set_tracker (ModulemdModule *self
,const gchar *tracker
);
Sets the "tracker" property.
const gchar *
modulemd_module_get_tracker (ModulemdModule *self
);
Retrieves the "tracker" for modulemd.
void modulemd_module_set_version (ModulemdModule *self
,const guint64 version
);
Sets the "version" property.
const guint64
modulemd_module_get_version (ModulemdModule *self
);
Retrieves the "version" for modulemd.
void modulemd_module_set_xmd (ModulemdModule *self
,GHashTable *xmd
);
Sets the 'xmd' property.
GHashTable *
modulemd_module_get_xmd (ModulemdModule *self
);
Retrieves the "xmd" for modulemd.
A hash table containing the "xmd" property.
[element-type utf8 GVariant][transfer container]