| ZIF Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
#define ZIF_UPDATE_ERROR enum ZifUpdateState; enum ZifUpdateKind; struct ZifUpdate; struct ZifUpdateClass; ZifUpdate * zif_update_new (void); ZifUpdateState zif_update_state_from_string (const gchar *state); ZifUpdateKind zif_update_kind_from_string (const gchar *kind); const gchar * zif_update_state_to_string (ZifUpdateState state); const gchar * zif_update_kind_to_string (ZifUpdateKind kind); ZifUpdateState zif_update_get_state (ZifUpdate *update); ZifUpdateKind zif_update_get_kind (ZifUpdate *update); const gchar * zif_update_get_id (ZifUpdate *update); const gchar * zif_update_get_title (ZifUpdate *update); const gchar * zif_update_get_description (ZifUpdate *update); const gchar * zif_update_get_issued (ZifUpdate *update); const gchar * zif_update_get_source (ZifUpdate *update); gboolean zif_update_get_reboot (ZifUpdate *update); GPtrArray * zif_update_get_update_infos (ZifUpdate *update); GPtrArray * zif_update_get_packages (ZifUpdate *update); GPtrArray * zif_update_get_changelog (ZifUpdate *update);
"description" gchar* : Read "id" gchar* : Read "issued" gchar* : Read "kind" guint : Read "reboot" gboolean : Read "source" gchar* : Read "state" guint : Read "title" gchar* : Read
typedef enum {
ZIF_UPDATE_STATE_STABLE,
ZIF_UPDATE_STATE_TESTING,
ZIF_UPDATE_STATE_UNKNOWN
} ZifUpdateState;
typedef enum {
ZIF_UPDATE_KIND_BUGFIX,
ZIF_UPDATE_KIND_SECURITY,
ZIF_UPDATE_KIND_ENHANCEMENT,
ZIF_UPDATE_KIND_NEWPACKAGE,
ZIF_UPDATE_KIND_UNKNOWN
} ZifUpdateKind;
struct ZifUpdateClass {
GObjectClass parent_class;
/* Padding for future expansion */
void (*_zif_reserved1) (void);
void (*_zif_reserved2) (void);
void (*_zif_reserved3) (void);
void (*_zif_reserved4) (void);
};
ZifUpdate * zif_update_new (void);
Returns : |
A new ZifUpdate instance. |
Since 0.1.0
ZifUpdateState zif_update_get_state (ZifUpdate *update);
Gets the update state.
|
A ZifUpdate |
Returns : |
The state of update, e.g. PK_UPDATE_STATE_ENUM_STABLE. |
Since 0.1.0
ZifUpdateKind zif_update_get_kind (ZifUpdate *update);
Gets the update kind.
|
A ZifUpdate |
Returns : |
The state of update, e.g. PK_INFO_ENUM_SECURITY. |
Since 0.1.0
const gchar * zif_update_get_id (ZifUpdate *update);
Gets the ID for this update.
Since 0.1.0
const gchar * zif_update_get_title (ZifUpdate *update);
Gets the title for this update.
Since 0.1.0
const gchar * zif_update_get_description (ZifUpdate *update);
Gets the description for this update.
Since 0.1.0
const gchar * zif_update_get_issued (ZifUpdate *update);
Gets the time this update was issued.
Since 0.1.0
const gchar * zif_update_get_source (ZifUpdate *update);
Gets the source of the update, e.g. "updatesfedoraproject.org".
Since 0.1.3
gboolean zif_update_get_reboot (ZifUpdate *update);
Gets if the update requires a reboot.
Since 0.1.0
GPtrArray * zif_update_get_update_infos (ZifUpdate *update);
Gets the update info for this update.
|
A ZifUpdate |
Returns : |
A refcounted GPtrArray of ZifUpdateInfo, or NULL. [element-type ZifUpdateInfo][transfer container]
|
Since 0.1.0
GPtrArray * zif_update_get_packages (ZifUpdate *update);
Gets the packages for this update.
|
A ZifUpdate |
Returns : |
A refcounted GPtrArray of ZifPackage, or NULL. [element-type ZifPackage][transfer container]
|
Since 0.1.0