Top |
Modulemd.DefaultsModulemd.Defaults — Parent class for Default documents. See ModulemdDefaultsV1 for a specific type. |
enum | ModulemdDefaultsVersionEnum |
#define | MODULEMD_TYPE_DEFAULTS |
struct | ModulemdDefaultsClass |
ModulemdDefaults |
ModulemdDefaults * modulemd_defaults_new (guint64 version
,const gchar *module_name
);
Create a new ModulemdDefaults.
version |
The version of the defaults metadata to create |
|
module_name |
The name of the module to which these defaults apply |
Since: 2.0
ModulemdDefaults *
modulemd_defaults_copy (ModulemdDefaults *self
);
Since: 2.0
gboolean modulemd_defaults_validate (ModulemdDefaults *self
,GError **error
);
self |
This ModulemdDefaults object. |
[in] |
error |
A GError that will return the reason for a validation error. |
[out] |
Since: 2.0
ModulemdDefaults * modulemd_defaults_upgrade (ModulemdDefaults *self
,guint64 mdversion
,GError **error
);
self |
This ModulemdDefaults object. |
[in] |
mdversion |
The version to upgrade to. |
[in] |
error |
A GError that will return the reason for an upgrade error. |
[out] |
A newly-allocated copy of self
upgraded to the
requested defaults version. NULL if the upgrade cannot be performed and sets
error
appropriately. This function does not modify self
.
Since: 2.0
const gchar *
modulemd_defaults_get_module_name (ModulemdDefaults *self
);
Since: 2.0
guint64
modulemd_defaults_get_mdversion (ModulemdDefaults *self
);
Since: 2.0
struct ModulemdDefaultsClass { GObjectClass parent_class; ModulemdDefaults *(*copy) (ModulemdDefaults *self); gboolean (*validate) (ModulemdDefaults *self, GError **error); guint64 (*get_mdversion) (ModulemdDefaults *self); /* Padding to allow adding up to 10 new virtual functions without * breaking ABI. */ gpointer padding[10]; };