summaryrefslogtreecommitdiff
path: root/telepathy-glib/gtypes.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2010-08-23 12:11:01 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2010-08-23 12:11:01 +0100
commit93279ba55754c41b9df6f91da74a5a69da275ac5 (patch)
tree6fa4e5380ff048be07a52ac22146e5a66cadd271 /telepathy-glib/gtypes.c
parent6ffc9728cb40487e3a93b5458cd9e0dc10b070f1 (diff)
downloadtelepathy-glib-93279ba55754c41b9df6f91da74a5a69da275ac5.tar.gz
fd.o #29458: add TP_ARRAY_TYPE_UCHAR_ARRAY_LIST
Diffstat (limited to 'telepathy-glib/gtypes.c')
-rw-r--r--telepathy-glib/gtypes.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/telepathy-glib/gtypes.c b/telepathy-glib/gtypes.c
index 3b79c4ba5..75129be0a 100644
--- a/telepathy-glib/gtypes.c
+++ b/telepathy-glib/gtypes.c
@@ -102,5 +102,30 @@ tp_type_dbus_array_of_y (void)
return t;
}
+/**
+ * TP_ARRAY_TYPE_UCHAR_ARRAY_LIST:
+ *
+ * Expands to a call to a function
+ * that returns the #GType of a #GPtrArray of %TP_TYPE_UCHAR_ARRAY, i.e.
+ * a #GPtrArray of #GArray of #guchar.
+ *
+ * This is the type used in dbus-glib to represent an array of byte arrays,
+ * signature 'aay'. (Note that the #GByteArray type is not used with
+ * dbus-glib.)
+ *
+ * Since: 0.11.UNRELEASED
+ */
+
+GType
+tp_type_dbus_array_of_ay (void)
+{
+ static GType t = 0;
+
+ if (G_UNLIKELY (t == 0))
+ t = dbus_g_type_get_collection ("GPtrArray", TP_TYPE_UCHAR_ARRAY);
+
+ return t;
+}
+
/* auto-generated implementation stubs */
#include "_gen/gtypes-body.h"