Modulemd.Dependencies

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

Stability Level

Stable, unless otherwise indicated

Functions

Types and Values

Description

Functions

modulemd_dependencies_new ()

ModulemdDependencies *
modulemd_dependencies_new (void);

Returns

A newly-allocated ModuleDependencies. This object must be freed with g_object_unref().

[transfer full]

Since: 2.0


modulemd_dependencies_equals ()

gboolean
modulemd_dependencies_equals (ModulemdDependencies *self_1,
                              ModulemdDependencies *self_2);

Check if self_1 and self_2 are equal objects

Parameters

self_1

A ModulemdDependencies

 

self_2

A ModulemdDependencies

 

Returns

TRUE, if the're equal. FALSE, otherwise.

Since: 2.2


modulemd_dependencies_copy ()

ModulemdDependencies *
modulemd_dependencies_copy (ModulemdDependencies *self);

Create a copy of this ModulemdDependencies object.

Parameters

self

This ModulemdDependencies

 

Returns

a copied ModulemdDependencies object.

[transfer full]

Since: 2.0


modulemd_dependencies_add_buildtime_stream ()

void
modulemd_dependencies_add_buildtime_stream
                               (ModulemdDependencies *self,
                                const gchar *module_name,
                                const gchar *module_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 provided module name is already present, the streams will be added (with deduplication).

Parameters

self

This ModulemdDependencies

 

module_name

The name of the module to depend on.

 

module_stream

The name of the module stream to depend on.

 

Since: 2.0


modulemd_dependencies_set_empty_buildtime_dependencies_for_module ()

void
modulemd_dependencies_set_empty_buildtime_dependencies_for_module
                               (ModulemdDependencies *self,
                                const gchar *module_name);

Adds a module and inserts an empty list for it as buildtime dependency.

Parameters

self

This ModuleDependencies

 

module_name

The name of the module to add dependencies on.

 

Since: 2.0


modulemd_dependencies_get_buildtime_modules_as_strv ()

GStrv
modulemd_dependencies_get_buildtime_modules_as_strv
                               (ModulemdDependencies *self);

[rename-to modulemd_dependencies_get_buildtime_modules]

Parameters

self

This ModulemdDependencies

 

Returns

An ordered list of module names of build-time dependencies.

[transfer full]

Since: 2.0


modulemd_dependencies_get_buildtime_streams_as_strv ()

GStrv
modulemd_dependencies_get_buildtime_streams_as_strv
                               (ModulemdDependencies *self,
                                const gchar *module);

[rename-to modulemd_dependencies_get_buildtime_streams]

Parameters

self

This ModulemdDependencies

 

module

The name of the module.

 

Returns

An ordered list of module streams associated with the specified module that are required at build-time.

[transfer full][nullable]

Since: 2.0


modulemd_dependencies_add_runtime_stream ()

void
modulemd_dependencies_add_runtime_stream
                               (ModulemdDependencies *self,
                                const gchar *module_name,
                                const gchar *module_stream);

Adds a module and its stream that is 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

self

This ModulemdDependencies

 

module_name

The name of the module to depend on.

 

module_stream

The name of the module stream to depend on.

 

Since: 2.0


modulemd_dependencies_set_empty_runtime_dependencies_for_module ()

void
modulemd_dependencies_set_empty_runtime_dependencies_for_module
                               (ModulemdDependencies *self,
                                const gchar *module_name);

Adds a module and inserts an empty list for it as runtime dependency.

Parameters

self

This ModuleDependencies

 

module_name

The name of the module to add dependencies on.

 

Since: 2.0


modulemd_dependencies_get_runtime_modules_as_strv ()

GStrv
modulemd_dependencies_get_runtime_modules_as_strv
                               (ModulemdDependencies *self);

[rename-to modulemd_dependencies_get_runtime_modules]

Parameters

self

This ModulemdDependencies

 

Returns

An ordered list of module names of run-time dependencies.

[transfer full]

Since: 2.0


modulemd_dependencies_get_runtime_streams_as_strv ()

GStrv
modulemd_dependencies_get_runtime_streams_as_strv
                               (ModulemdDependencies *self,
                                const gchar *module);

[rename-to modulemd_dependencies_get_runtime_streams]

Parameters

self

This ModulemdDependencies

 

module

The name of the module.

 

Returns

An ordered list of module streams associated with the specified module that are required at run-time.

[transfer full][nullable]

Since: 2.0

Types and Values

MODULEMD_TYPE_DEPENDENCIES

#define MODULEMD_TYPE_DEPENDENCIES (modulemd_dependencies_get_type ())

ModulemdDependencies

typedef struct _ModulemdDependencies ModulemdDependencies;