diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-07-08 18:35:02 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-07-08 18:35:02 +0800 |
commit | e98ae9bde97e290c0f54593af1cb30905bb9055e (patch) | |
tree | 12c447b1faf753846c625cb267891f8621f1dd74 | |
parent | 13f92652db89b2c15c3302b4af7560a4e4ee22c9 (diff) | |
download | gsoc2013-empathy-e98ae9bde97e290c0f54593af1cb30905bb9055e.tar gsoc2013-empathy-e98ae9bde97e290c0f54593af1cb30905bb9055e.tar.gz gsoc2013-empathy-e98ae9bde97e290c0f54593af1cb30905bb9055e.tar.bz2 gsoc2013-empathy-e98ae9bde97e290c0f54593af1cb30905bb9055e.tar.lz gsoc2013-empathy-e98ae9bde97e290c0f54593af1cb30905bb9055e.tar.xz gsoc2013-empathy-e98ae9bde97e290c0f54593af1cb30905bb9055e.tar.zst gsoc2013-empathy-e98ae9bde97e290c0f54593af1cb30905bb9055e.zip |
Add an GType of ao
-rw-r--r-- | libempathy/empathy-utils.c | 10 | ||||
-rw-r--r-- | libempathy/empathy-utils.h | 3 |
2 files changed, 13 insertions, 0 deletions
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__ */ |