summaryrefslogtreecommitdiff
path: root/tools/libglibcodegen.py
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2008-07-21 13:58:58 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2008-07-21 13:58:58 +0000
commit62f87b469af61168bebd5e128784140042393863 (patch)
tree42a45c991578943aebf04770065efd24c35b028f /tools/libglibcodegen.py
parentf6541affe996d10bd1c76dde014a7d3819287f77 (diff)
Update code-gen tools from telepathy-glib 0.7.12
Diffstat (limited to 'tools/libglibcodegen.py')
-rw-r--r--tools/libglibcodegen.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/libglibcodegen.py b/tools/libglibcodegen.py
index 6a725c052..129c179e7 100644
--- a/tools/libglibcodegen.py
+++ b/tools/libglibcodegen.py
@@ -27,6 +27,7 @@ from libtpcodegen import NS_TP, \
camelcase_to_upper, \
cmp_by_name, \
escape_as_identifier, \
+ get_by_path, \
get_descendant_text, \
get_docstring, \
xml_escape
@@ -146,7 +147,10 @@ def type_to_gtype(s):
elif s == 'ab': #boolean array
return ("GArray *", "DBUS_TYPE_G_BOOLEAN_ARRAY", "BOXED", True)
elif s == 'ao': #object path array
- return ("GPtrArray *", "DBUS_TYPE_G_OBJECT_ARRAY", "BOXED", True)
+ return ("GPtrArray *",
+ 'dbus_g_type_get_collection ("GPtrArray",'
+ ' DBUS_TYPE_G_OBJECT_PATH)',
+ "BOXED", True)
elif s == 'a{ss}': #hash table of string to string
return ("GHashTable *", "DBUS_TYPE_G_STRING_STRING_HASHTABLE", "BOXED", False)
elif s[:2] == 'a{': #some arbitrary hash tables