From e98ae9bde97e290c0f54593af1cb30905bb9055e Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Wed, 8 Jul 2009 11:35:02 +0100 Subject: Add an GType of ao --- libempathy/empathy-utils.c | 10 ++++++++++ libempathy/empathy-utils.h | 3 +++ 2 files changed, 13 insertions(+) (limited to 'libempathy') diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c index fd54c9a98..69779d99f 100644 --- a/libempathy/empathy-utils.c +++ b/libempathy/empathy-utils.c @@ -378,3 +378,13 @@ empathy_uint_compare (gconstpointer a, return *(guint *) a - *(guint *) b; } +GType +empathy_type_dbus_ao (void) +{ + static GType t = 0; + + if (G_UNLIKELY (t == 0)) + t = dbus_g_type_get_collection ("GPtrArray", DBUS_TYPE_G_OBJECT_PATH); + + return t; +} diff --git a/libempathy/empathy-utils.h b/libempathy/empathy-utils.h index 42acbc8e3..735946b92 100644 --- a/libempathy/empathy-utils.h +++ b/libempathy/empathy-utils.h @@ -80,6 +80,9 @@ gboolean empathy_check_available_state (void); gint empathy_uint_compare (gconstpointer a, gconstpointer b); +#define EMPATHY_ARRAY_TYPE_OBJECT (empathy_type_dbus_ao ()) +GType empathy_type_dbus_ao (void); + G_END_DECLS #endif /* __EMPATHY_UTILS_H__ */ -- cgit v1.2.3