[empathy/mc5: 39/483] Add an GType of ao



commit e98ae9bde97e290c0f54593af1cb30905bb9055e
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date:   Wed Jul 8 11:35:02 2009 +0100

    Add an GType of ao

 libempathy/empathy-utils.c |   10 ++++++++++
 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 fd54c9a..69779d9 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 42acbc8..735946b 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__ */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]