Top |
Modulemd.DependenciesModulemd.Dependencies — Object to represent build-time and runtime dependencies of a module stream. |
ModulemdDependencies *
modulemd_dependencies_new (void
);
Since: 1.0
void modulemd_dependencies_add_buildrequires (ModulemdDependencies *self
,const gchar *module
,const gchar **streams
);
Add a set of modules and their streams that are required to build another dependent module. The matrix of streams and module names will be calculated by the build-system. If the listed provided module name is already present, the streams will be added (with deduplication).
module |
The module name |
|
streams |
The list of streams for this module. |
[array zero-terminated] |
Since: 1.0
void modulemd_dependencies_add_buildrequires_single (ModulemdDependencies *self
,const gchar *module
,const gchar *stream
);
Add a single stream of a module that is required to build another dependent module. The matrix of streams and module names will be calculated by the build-system. If the listed provided module name is already present, the streams will be added (with deduplication).
Since: 1.0
void modulemd_dependencies_set_buildrequires (ModulemdDependencies *self
,GHashTable *buildrequires
);
Sets the 'buildrequires' property.
buildrequires |
The requirements to build this module. |
[nullable][element-type utf8 ModulemdSimpleSet][transfer none] |
Since: 1.0
GHashTable *
modulemd_dependencies_get_buildrequires
(ModulemdDependencies *self
);
modulemd_dependencies_get_buildrequires
has been deprecated since version 1.1 and should not be used in newly-written code.
Use peek_buildrequires()
instead.
Retrieves the "buildrequires" for these dependencies.
A hash table containing the "buildrequires" property. Returns NULL if there are no buildrequires set.
[element-type utf8 ModulemdSimpleSet][transfer none]
Since: 1.0
GHashTable *
modulemd_dependencies_peek_buildrequires
(ModulemdDependencies *self
);
Retrieves the "buildrequires" for these dependencies.
A hash table containing the "buildrequires" property. Returns NULL if there are no buildrequires set.
[element-type utf8 ModulemdSimpleSet][transfer none]
Since: 1.1
GHashTable *
modulemd_dependencies_dup_buildrequires
(ModulemdDependencies *self
);
Retrieves a copy of the "buildrequires" for these dependencies.
A hash table containing the "buildrequires" property.
[element-type utf8 ModulemdSimpleSet][transfer container]
Since: 1.1
void modulemd_dependencies_add_requires (ModulemdDependencies *self
,const gchar *module
,const gchar **streams
);
Add a single stream of a module that is required to build another dependent module. The matrix of streams and module names will be calculated by the build-system. If the listed provided module name is already present, the streams will be added (with deduplication).
module |
The module name |
|
streams |
The list of streams for this module. |
[array zero-terminated=1] |
Since: 1.0
void modulemd_dependencies_add_requires_single (ModulemdDependencies *self
,const gchar *module
,const gchar *stream
);
Add a set of modules and their streams that are required at runtime by a dependent module. The matrix of streams and module names will be calculated by the build-system. If the listed provided module name is already present, the streams will be added (with deduplication).
Since: 1.0
void modulemd_dependencies_set_requires (ModulemdDependencies *self
,GHashTable *requires
);
Sets the 'requires' property.
requires |
The runtime requirements for this module. |
[nullable][element-type utf8 ModulemdSimpleSet][transfer none] |
Since: 1.0
GHashTable *
modulemd_dependencies_get_requires (ModulemdDependencies *self
);
modulemd_dependencies_get_requires
has been deprecated since version 1.1 and should not be used in newly-written code.
Use peek_requires()
instead.
Retrieves the "requires" for these dependencies.
A hash table containing the "requires" property.
[element-type utf8 ModulemdSimpleSet][transfer none]
Since: 1.0
GHashTable *
modulemd_dependencies_peek_requires (ModulemdDependencies *self
);
Retrieves the "requires" for these dependencies.
A hash table containing the "requires" property.
[element-type utf8 ModulemdSimpleSet][transfer none]
Since: 1.1
GHashTable *
modulemd_dependencies_dup_requires (ModulemdDependencies *self
);
Retrieves a copy of the "requires" for these dependencies.
A hash table containing the "requires" property.
[element-type utf8 ModulemdSimpleSet][transfer container]
Since: 1.1
void modulemd_dependencies_copy (ModulemdDependencies *self
,ModulemdDependencies **dest
);
This function will copy the contents of this ModulemdDependencies to dest
.
If the dereferenced pointer is NULL, a new ModulemdDependencies will be
allocated.
If the dereferenced pointer is not NULL, it will replace the contents of
dest
. All existing internal variables will be freed.
In either case, the caller is responsible for calling g_object_unref()
later
to free it.
If self
is NULL, no changes will occur to dest
.
Since: 1.0