Top | ![]() |
![]() |
![]() |
![]() |
Modulemd.RpmMapEntryModulemd.RpmMapEntry — Provides an exploded and unexploded view of the NEVRA of an RPM artifact. |
ModulemdRpmMapEntry * modulemd_rpm_map_entry_new (const gchar *name
,guint64 epoch
,const gchar *version
,const gchar *release
,const gchar *arch
);
Create a new rpm-map entry. This will contain the decomposed NEVRA of an RPM artifact.
ModulemdRpmMapEntry *
modulemd_rpm_map_entry_copy (ModulemdRpmMapEntry *self
);
Since: 2.2
gboolean modulemd_rpm_map_entry_equals (ModulemdRpmMapEntry *self
,ModulemdRpmMapEntry *other
);
Since: 2.2
gboolean modulemd_rpm_map_entry_validate (ModulemdRpmMapEntry *self
,GError **error
);
self |
This ModulemdRpmMapEntry object. |
|
error |
A GError containing the reason the object failed validation. NULL if the validation passed. |
[out] |
Since: 2.2
void modulemd_rpm_map_entry_set_name (ModulemdRpmMapEntry *self
,const gchar *name
);
Since: 2.2
const gchar *
modulemd_rpm_map_entry_get_name (ModulemdRpmMapEntry *self
);
Since: 2.2
void modulemd_rpm_map_entry_set_epoch (ModulemdRpmMapEntry *self
,guint64 epoch
);
Since: 2.2
guint64
modulemd_rpm_map_entry_get_epoch (ModulemdRpmMapEntry *self
);
Since: 2.2
void modulemd_rpm_map_entry_set_version (ModulemdRpmMapEntry *self
,const gchar *version
);
Since: 2.2
const gchar *
modulemd_rpm_map_entry_get_version (ModulemdRpmMapEntry *self
);
Since: 2.2
void modulemd_rpm_map_entry_set_release (ModulemdRpmMapEntry *self
,const gchar *release
);
Since: 2.2
const gchar *
modulemd_rpm_map_entry_get_release (ModulemdRpmMapEntry *self
);
Since: 2.2
void modulemd_rpm_map_entry_set_arch (ModulemdRpmMapEntry *self
,const gchar *arch
);
Since: 2.2
const gchar *
modulemd_rpm_map_entry_get_arch (ModulemdRpmMapEntry *self
);
Since: 2.2
gchar *
modulemd_rpm_map_entry_get_nevra_as_string
(ModulemdRpmMapEntry *self
);
[rename-to modulemd_rpm_map_entry_get_nevra]
A newly-allocated string containing the complete N-E:V-R.A constructed from the component parts. NULL if any field is missing.
[transfer full]
Since: 2.2
#define MODULEMD_TYPE_RPM_MAP_ENTRY (modulemd_rpm_map_entry_get_type ())
“arch”
property “arch” char *
The artifact package architecture.
Owner: ModulemdRpmMapEntry
Flags: Read / Write / Construct
Default value: NULL
“epoch”
property“epoch” guint64
The artifact package epoch.
Owner: ModulemdRpmMapEntry
Flags: Read / Write / Construct
Allowed values: <= 4294967295
Default value: 0
“name”
property “name” char *
The artifact package name.
Owner: ModulemdRpmMapEntry
Flags: Read / Write / Construct
Default value: NULL
“nevra”
property “nevra” char *
The artifact package N-E:V-R.A.
Owner: ModulemdRpmMapEntry
Flags: Read
Default value: NULL
“release”
property “release” char *
The artifact package release string.
Owner: ModulemdRpmMapEntry
Flags: Read / Write / Construct
Default value: NULL