summaryrefslogtreecommitdiff
path: root/telepathy-glib/presence-mixin.h
diff options
context:
space:
mode:
authorOlli Salli <olli.salli@collabora.co.uk>2007-06-01 12:43:40 +0000
committerOlli Salli <olli.salli@collabora.co.uk>2007-06-01 12:43:40 +0000
commit77c4804af7a6310287da8f6e113940e8661b0899 (patch)
tree14bd0a3cfbeb260e8fe05e9d45ce9b54a1ab9e7f /telepathy-glib/presence-mixin.h
parentee02fdd45a291af37b9ecc0e372f8680fc53572c (diff)
downloadtelepathy-glib-77c4804af7a6310287da8f6e113940e8661b0899.tar.gz
Provide implementations of g_hash_table_{ref,unref} for GLib < 2.10, they are required for TpPresenceMixin
20070601124340-9db4d-ea98977b411f6a9c952dd6c6ff737ddd1b6ef0fa.gz
Diffstat (limited to 'telepathy-glib/presence-mixin.h')
-rw-r--r--telepathy-glib/presence-mixin.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/telepathy-glib/presence-mixin.h b/telepathy-glib/presence-mixin.h
index 5c538aaef..d94ce945e 100644
--- a/telepathy-glib/presence-mixin.h
+++ b/telepathy-glib/presence-mixin.h
@@ -28,6 +28,14 @@
G_BEGIN_DECLS
+#if ((GLIB_MAJOR_VERSION == 2) && (GLIB_MINOR_VERSION < 10))
+#define g_hash_table_ref tp_gash_table_ref
+#define g_hash_table_unref tp_gash_table_unref
+
+void tp_gash_table_ref(GHashTable *hash_table);
+void tp_gash_table_unref(GHashTable *hash_table);
+#endif
+
typedef struct _TpPresenceStatusOptionalArgumentSpec
TpPresenceStatusOptionalArgumentSpec;
typedef struct _TpPresenceStatusSpec TpPresenceStatusSpec;