Modulemd.Dependencies

Modulemd.Dependencies — Object to represent build-time and runtime dependencies of a module stream.

Functions

Types and Values

Description

Functions

modulemd_dependencies_new ()

ModulemdDependencies *
modulemd_dependencies_new (void);

Returns

A new ModulemdDependencies object. This must be freed with g_object_unref().

[transfer full]

Since: 1.0


modulemd_dependencies_add_buildrequires ()

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).

Parameters

module

The module name

 

streams

The list of streams for this module.

[array zero-terminated]

Since: 1.0


modulemd_dependencies_add_buildrequires_single ()

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).

Parameters

module

The module name

 

stream

The stream for this module

 

Since: 1.0


modulemd_dependencies_set_buildrequires ()

void
modulemd_dependencies_set_buildrequires
                               (ModulemdDependencies *self,
                                GHashTable *buildrequires);

Sets the 'buildrequires' property.

Parameters

buildrequires

The requirements to build this module.

[nullable][element-type utf8 ModulemdSimpleSet][transfer none]

Since: 1.0


modulemd_dependencies_get_buildrequires ()

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.

Returns

A hash table containing the "buildrequires" property. Returns NULL if there are no buildrequires set.

[element-type utf8 ModulemdSimpleSet][transfer none]

Since: 1.0


modulemd_dependencies_peek_buildrequires ()

GHashTable *
modulemd_dependencies_peek_buildrequires
                               (ModulemdDependencies *self);

Retrieves the "buildrequires" for these dependencies.

Returns

A hash table containing the "buildrequires" property. Returns NULL if there are no buildrequires set.

[element-type utf8 ModulemdSimpleSet][transfer none]

Since: 1.1


modulemd_dependencies_dup_buildrequires ()

GHashTable *
modulemd_dependencies_dup_buildrequires
                               (ModulemdDependencies *self);

Retrieves a copy of the "buildrequires" for these dependencies.

Returns

A hash table containing the "buildrequires" property.

[element-type utf8 ModulemdSimpleSet][transfer container]

Since: 1.1


modulemd_dependencies_add_requires ()

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).

Parameters

module

The module name

 

streams

The list of streams for this module.

[array zero-terminated=1]

Since: 1.0


modulemd_dependencies_add_requires_single ()

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).

Parameters

module

The module name

 

stream

The stream for this module

 

Since: 1.0


modulemd_dependencies_set_requires ()

void
modulemd_dependencies_set_requires (ModulemdDependencies *self,
                                    GHashTable *requires);

Sets the 'requires' property.

Parameters

requires

The runtime requirements for this module.

[nullable][element-type utf8 ModulemdSimpleSet][transfer none]

Since: 1.0


modulemd_dependencies_get_requires ()

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.

Returns

A hash table containing the "requires" property.

[element-type utf8 ModulemdSimpleSet][transfer none]

Since: 1.0


modulemd_dependencies_peek_requires ()

GHashTable *
modulemd_dependencies_peek_requires (ModulemdDependencies *self);

Retrieves the "requires" for these dependencies.

Returns

A hash table containing the "requires" property.

[element-type utf8 ModulemdSimpleSet][transfer none]

Since: 1.1


modulemd_dependencies_dup_requires ()

GHashTable *
modulemd_dependencies_dup_requires (ModulemdDependencies *self);

Retrieves a copy of the "requires" for these dependencies.

Returns

A hash table containing the "requires" property.

[element-type utf8 ModulemdSimpleSet][transfer container]

Since: 1.1


modulemd_dependencies_copy ()

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 .

Parameters

dest

A reference to the destination ModulemdDependencies.

[out]

Since: 1.0

Types and Values

MODULEMD_TYPE_DEPENDENCIES

#define MODULEMD_TYPE_DEPENDENCIES (modulemd_dependencies_get_type ())

ModulemdDependencies

typedef struct _ModulemdDependencies ModulemdDependencies;