diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2011-01-19 08:28:23 +0000 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2011-01-19 08:28:23 +0000 |
commit | 95b85cab2c1137a00ad99db372aee5ba967701f1 (patch) | |
tree | 4dd8cae77f5ca1db0acdd97818d9ea5bade88b4b | |
parent | 432a9df10bd0d8ebbdd5571dbb534262efacef5f (diff) |
libglibcodegen: add support for avav
Fixes: fd.o#33264
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r-- | tools/libglibcodegen.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/libglibcodegen.py b/tools/libglibcodegen.py index 6a9d21485..da114159b 100644 --- a/tools/libglibcodegen.py +++ b/tools/libglibcodegen.py @@ -100,6 +100,11 @@ def method_to_glue_marshal_name(method, prefix): return prefix + '_marshal_VOID__' + name +# return tuple is: +# 0. str of type in C, including asterisk if it's a pointer +# 1. str of GType name +# 2. str of type to give to glib-genmarshal and friends +# 3. bool of whether this type is a pointer def type_to_gtype(s): if s == 'y': #byte return ("guchar ", "G_TYPE_UCHAR","UCHAR", False) @@ -150,6 +155,8 @@ def type_to_gtype(s): 'dbus_g_type_get_collection ("GPtrArray",' ' DBUS_TYPE_G_OBJECT_PATH)', "BOXED", True) + elif s == 'av': #variant array + return ("GValueArray *", "G_TYPE_VALUE_ARRAY", "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 |