Top | ![]() |
![]() |
![]() |
![]() |
#define | MODULEMD_PRIORITIZER_ERROR |
#define | MODULEMD_PRIORITIZER_PRIORITY_MAX |
#define | MODULEMD_PRIORITIZER_PRIORITY_MIN |
#define | MODULEMD_TYPE_PRIORITIZER |
ModulemdPrioritizer |
gboolean modulemd_prioritizer_add (ModulemdPrioritizer *self
,GPtrArray *objects
,gint64 priority
,GError **error
);
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. Valid values are 0 - 1000. |
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
GPtrArray * modulemd_prioritizer_resolve (ModulemdPrioritizer *self
,GError **error
);
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