Top |
Modulemd.ComponentModulemd.Component — Pure virtual parent class for components that go into a module stream. |
gboolean modulemd_component_equals (ModulemdComponent *self_1
,ModulemdComponent *self_2
);
Since: 2.3
ModulemdComponent * modulemd_component_copy (ModulemdComponent *self
,const gchar *key
);
self |
This ModulemdComponent object |
|
key |
An optional new key for the copied component which is used as the lookup key when this component is attached to a ModulemdModuleStream. |
[in][nullable] |
Since: 2.0
gboolean modulemd_component_validate (ModulemdComponent *self
,GError **error
);
Verifies that all stored values are internally consistent and that the component is sufficiently-complete for emitting. This function is called implicitly before attempting to emit the contents.
self |
This ModulemdComponent. |
[in] |
error |
A GError that will return the reason for a validation error. |
[out] |
TRUE if the ModulemdComponent passed validation. FALSE and sets
error
appropriately if validation fails.
Since: 2.2
void modulemd_component_add_buildafter (ModulemdComponent *self
,const gchar *key
);
Add a build dependency of this component.
self |
This ModulemdComponent object |
|
key |
A key representing another component in the ModulemdModuleStream components map. |
[in] |
Since: 2.2
GStrv
modulemd_component_get_buildafter_as_strv
(ModulemdComponent *self
);
[rename-to modulemd_component_get_buildafter]
Since: 2.2
void modulemd_component_set_buildonly (ModulemdComponent *self
,gboolean buildonly
);
self |
This ModulemdComponent object |
|
buildonly |
Whether this component is used only for building this module. If set to TRUE, the build system should add any artifacts produced by this component to the data.filters section of the output modulemd. |
Since: 2.2
gboolean
modulemd_component_get_buildonly (ModulemdComponent *self
);
Since: 2.2
void modulemd_component_set_buildorder (ModulemdComponent *self
,gint64 buildorder
);
self |
This ModulemdComponent object |
|
buildorder |
The order this component should be built relative to others. |
Since: 2.0
gint64
modulemd_component_get_buildorder (ModulemdComponent *self
);
Since: 2.0
void modulemd_component_set_name (ModulemdComponent *self
,const gchar *name
);
self |
This ModulemdComponent object. |
|
name |
The name of this component. Note that this is different from the key used to save this component to a ModulemdModuleStream. If this value is set, it adds a "name:" attribute to this component. This is used in bootstrapping cases where the key is a different name used to differentiate multiple ordered builds of the same component name. This function is currently only implemented for ModulemdComponentRpm and has no effect on other ModulemdComponent types. |
[nullable] |
Since: 2.2
const gchar *
modulemd_component_get_name (ModulemdComponent *self
);
The name of the component. Note that this may be
different from the key used to save this component to a
ModulemdModuleStream. If you specifically need the key, use
modulemd_component_get_key()
instead.
Since: 2.0
const gchar *
modulemd_component_get_key (ModulemdComponent *self
);
Since: 2.2
void modulemd_component_set_rationale (ModulemdComponent *self
,const gchar *rationale
);
self |
This ModulemdComponent object |
|
rationale |
The reason that this component is part of the stream. |
Since: 2.0
const gchar *
modulemd_component_get_rationale (ModulemdComponent *self
);
Since: 2.0
struct ModulemdComponentClass { GObjectClass parent_class; ModulemdComponent *(*copy) (ModulemdComponent *self, const gchar *key); void (*set_name) (ModulemdComponent *self, const gchar *name); const gchar *(*get_name) (ModulemdComponent *self); gboolean (*validate) (ModulemdComponent *self, GError **error); gboolean (*equals) (ModulemdComponent *self_1, ModulemdComponent *self_2); /* Padding to allow adding up to 7 new virtual functions without * breaking ABI. */ gpointer padding[7]; };