diff options
author | Jürg Billeter <j@bitron.ch> | 2011-11-23 13:30:40 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2011-11-23 13:30:40 +0100 |
commit | d82027732f70943a0b72d3d9707dae714f20949a (patch) | |
tree | 6d09391b7126ec1decbd3835dfe0774407cc9aaa /vapigen | |
parent | d03557e88ce4338f174942f7376517aa57034d0f (diff) | |
download | vala-d82027732f70943a0b72d3d9707dae714f20949a.tar.gz |
gio-2.0: Fix g_dbus_send_message_with_reply and GUnixFDList bindings
Diffstat (limited to 'vapigen')
-rw-r--r-- | vapigen/valagidlparser.vala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala index 209c0ab37..1fbfc48b1 100644 --- a/vapigen/valagidlparser.vala +++ b/vapigen/valagidlparser.vala @@ -2234,6 +2234,11 @@ public class Vala.GIdlParser : CodeVisitor { return_type = new ArrayType (return_type, 1, return_type.source_reference); m.return_type = return_type; } + } else if (nv[0] == "is_pointer") { + if (eval (nv[1]) == "1") { + return_type = new PointerType (return_type, return_type.source_reference); + m.return_type = return_type; + } } else if (nv[0] == "throws") { if (eval (nv[1]) == "0") { suppress_throws = true; @@ -2379,6 +2384,14 @@ public class Vala.GIdlParser : CodeVisitor { } array_requested = true; } + } else if (nv[0] == "is_pointer") { + if (eval (nv[1]) == "1") { + param_type = new PointerType (param_type, return_type.source_reference); + p.variable_type = param_type; + if (!out_requested) { + p.direction = ParameterDirection.IN; + } + } } else if (nv[0] == "is_out") { if (eval (nv[1]) == "1") { p.direction = ParameterDirection.OUT; |