diff options
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 |
commit | 1af5137a46666aecec1be322ec4e014c0850070f (patch) | |
tree | e1593c76b8b9a0eb1a79bb5f8006cf9c8d23412d /tools | |
parent | 21ccfe37bddcce50bb177febb6c298515caf2152 (diff) | |
download | telepathy-farstream-1af5137a46666aecec1be322ec4e014c0850070f.tar.gz |
added basic types for struct and dicts
20060116214339-25e70-c42656c7ece7c6d75b80e566726db6a72ea82a44.gz
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gengobject.py | 4 |
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) |