[gnome-packagekit] trivial: Add the backwards compat enums for libpackagekit-glib < 0.5.3
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-packagekit] trivial: Add the backwards compat enums for libpackagekit-glib < 0.5.3
- Date: Sat, 3 Oct 2009 08:40:26 +0000 (UTC)
commit 4bc8c5e04a441ada767837e8b9a04f289ed27062
Author: Richard Hughes <richard hughsie com>
Date: Sat Oct 3 09:39:18 2009 +0100
trivial: Add the backwards compat enums for libpackagekit-glib < 0.5.3
src/gpk-enum.h | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/gpk-enum.h b/src/gpk-enum.h
index bb47d24..a4f612c 100644
--- a/src/gpk-enum.h
+++ b/src/gpk-enum.h
@@ -138,6 +138,17 @@ typedef guint PkMediaTypeEnum;
#define PK_INFO_ENUM_UNKNOWN (PK_INFO_ENUM_DOWNGRADING + 1)
#endif
+/* constants defined in 0.5.3 */
+#if (!PK_CHECK_VERSION(0,5,3))
+#define PK_INFO_ENUM_PREPARING (PK_INFO_ENUM_DOWNGRADING + 1)
+#define PK_INFO_ENUM_DECOMPRESSING (PK_INFO_ENUM_PREPARING + 1)
+#undef PK_INFO_ENUM_UNKNOWN
+#define PK_INFO_ENUM_UNKNOWN (PK_INFO_ENUM_DECOMPRESSING + 1)
+#define PK_STATUS_ENUM_COPY_FILES (PK_STATUS_ENUM_CHECK_LIBRARIES + 1)
+#undef PK_STATUS_ENUM_UNKNOWN
+#define PK_STATUS_ENUM_UNKNOWN (PK_STATUS_ENUM_COPY_FILES + 1)
+#endif
+
void gpk_enum_test (gpointer data);
const gchar *gpk_role_enum_to_localised_past (PkRoleEnum role)
G_GNUC_CONST;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]