diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-01-04 09:13:43 +0000 |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-01-04 09:13:43 +0000 |
commit | f61c178bec7d4f298c73b33372fbb0370c282e55 (patch) | |
tree | eee521b42e47d192a95266019bbfcbfd9129e4d4 /bindings/utils.py | |
parent | 003b2511ab0430d43aa0bc8007b7994e5932feb2 (diff) | |
download | lasso-f61c178bec7d4f298c73b33372fbb0370c282e55.tar.gz lasso-f61c178bec7d4f298c73b33372fbb0370c282e55.tar.xz lasso-f61c178bec7d4f298c73b33372fbb0370c282e55.zip |
Bindings: in bindings.py, parse '(in)' gobject-introspection annotation, in utils.py, use it to reverse default annotation for pointer of pointers
Bindings: in bindings.py, improve regular expression for declarations
Bindings: parse gobject-introspection annotation in return value
documentation, add cast to C calls when parameter type is const in java
binding, problem arise with const char ** arrays
Diffstat (limited to 'bindings/utils.py')
-rw-r--r-- | bindings/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bindings/utils.py b/bindings/utils.py index e1248d92..68ce2392 100644 --- a/bindings/utils.py +++ b/bindings/utils.py @@ -128,7 +128,8 @@ def value_type(arg): return arg[2].get('value-type') def is_out(arg): - return _test_arg(arg, 'out') or arg_type(arg).endswith('**') + return _test_arg(arg, 'out') or (arg_type(arg).endswith('**') and not _test_arg(arg, 'in')) + def is_glist(arg): return re.match('GList\>', var_type(arg)) |