modulemd-prioritizer

modulemd-prioritizer

Functions

Types and Values

Description

Functions

modulemd_prioritizer_new ()

ModulemdPrioritizer *
modulemd_prioritizer_new (void);

modulemd_prioritizer_add ()

gboolean
modulemd_prioritizer_add (ModulemdPrioritizer *self,
                          GPtrArray *objects,
                          gint64 priority,
                          GError **error);

Parameters

objects

A GPtrArray of module-related objects loaded from a modulemd YAML stream.

[array zero-terminated=1][element-type GObject]

priority

The priority of the YAML stream these were loaded from. Items at the same priority level will attempt to merge on conflict. Items at higher priority levels will replace on conflict.

 

Returns

TRUE if the objects could be added without generating a conflict at this priority level. If a conflict was detected, this function returns FALSE and error is set. The internal state is undefined in the case of an error.

Since: 1.3


modulemd_prioritizer_resolve ()

GPtrArray *
modulemd_prioritizer_resolve (ModulemdPrioritizer *self,
                              GError **error);

Returns

A GPtrArray of module-related objects with all priorities resolved. This object must be freed with g_ptr_array_unref().

[array zero-terminated=1][element-type GObject][transfer container]

Since: 1.3

Types and Values

MODULEMD_TYPE_PRIORITIZER

#define MODULEMD_TYPE_PRIORITIZER (modulemd_prioritizer_get_type ())

ModulemdPrioritizer

typedef struct _ModulemdPrioritizer ModulemdPrioritizer;