summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
author <rob.taylor@collabora.co.uk>2006-01-16 21:43:39 +0000
committer <rob.taylor@collabora.co.uk>2006-01-16 21:43:39 +0000
commit1af5137a46666aecec1be322ec4e014c0850070f (patch)
treee1593c76b8b9a0eb1a79bb5f8006cf9c8d23412d /tools
parent21ccfe37bddcce50bb177febb6c298515caf2152 (diff)
added basic types for struct and dicts
Diffstat (limited to 'tools')
-rw-r--r--tools/gengobject.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/gengobject.py b/tools/gengobject.py
index cffc1c3..5736072 100644
--- a/tools/gengobject.py
+++ b/tools/gengobject.py
@@ -75,6 +75,10 @@ def type_to_gtype(s):
return ("GArray *", "DBUS_TYPE_G_DOUBLE_ARRAY", "BOXED", True)
if s == 'ab': #boolean array
return ("GArray *", "DBUS_TYPE_G_BOOLEAN_ARRAY", "BOXED", True)
+ if s[:2] == 'a(': #array of structs
+ return ("GArray *", "G_TYPE_BOXED", "BOXED", True)
+ if s[:2] == 'a{': #dict
+ return ("GHashTable *", "G_TYPE_BOXED", "BOXED", True)
# we just don't know ..
return ("gpointer", "G_TYPE_BOXED", "BOXED", True)