summaryrefslogtreecommitdiff
path: root/telepathy-glib/gtypes.c
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2009-07-22 17:55:49 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2009-07-22 18:01:30 +0100
commit70ca6cef03aec43692404613ff50cdd54162a5e8 (patch)
treec01399f6c4d514690b0683b9a9ad2638231e1833 /telepathy-glib/gtypes.c
parent6c75d88f6238e3d8adc4542b1a8587f022cdae64 (diff)
downloadtelepathy-glib-70ca6cef03aec43692404613ff50cdd54162a5e8.tar.gz
Add TP_ARRAY_TYPE_OBJECT_PATH_LIST
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'telepathy-glib/gtypes.c')
-rw-r--r--telepathy-glib/gtypes.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/telepathy-glib/gtypes.c b/telepathy-glib/gtypes.c
index d2b87a5a8..d72c90ada 100644
--- a/telepathy-glib/gtypes.c
+++ b/telepathy-glib/gtypes.c
@@ -39,6 +39,27 @@
*/
/**
+ * TP_ARRAY_TYPE_OBJECT_PATH_LIST:
+ *
+ * Expands to a call to a function
+ * that returns the #GType of a #GPtrArray
+ * of DBUS_TYPE_G_OBJECT_PATH.
+ *
+ * Since: 0.7.UNRELEASED
+ */
+
+GType
+tp_type_dbus_array_of_o (void)
+{
+ static GType t = 0;
+
+ if (G_UNLIKELY (t == 0))
+ t = dbus_g_type_get_collection ("GPtrArray", DBUS_TYPE_G_OBJECT_PATH);
+
+ return t;
+}
+
+/**
* tp_dbus_specialized_value_slice_new:
* @type: A D-Bus specialized type (i.e. probably a specialized GValueArray
* representing a D-Bus struct)