]> www.infradead.org Git - users/dhowells/kafs-utils.git/commitdiff
rxgen: Support INOUT bulk and struct rpc call args
authorDavid Howells <dhowells@redhat.com>
Tue, 13 May 2014 20:18:07 +0000 (21:18 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 13 May 2014 20:18:07 +0000 (21:18 +0100)
We can support INOUT bulk and struct rpc call args since the code now doesn't
try to return results through the argument list.

Signed-off-by: David Howells <dhowells@redhat.com>
rxgen/emit_py_sync_funcs.pm

index 09a87d5b372c11cbc8f4db40b5e4db2344a02e90..6779124b09e32b76a12c273f853129adc8d9b619 100644 (file)
@@ -260,10 +260,8 @@ sub emit_py_func_simple_sync_call($)
        } elsif ($p->{class} eq "basic") {
            print PYOUT "\t", $p->{type}, " param_", $p->{name}, ";\n";
        } elsif ($p->{class} eq "struct") {
-           die $p->{where}, ": INOUT struct args not supported" if ($p->{dir} eq "INOUT");
            print PYOUT "\tstruct py_", $p->{type}, " *param_", $p->{name}, ";\n";
        } elsif ($p->{class} eq "bulk") {
-           die $p->{where}, ": INOUT bulk args not supported" if ($p->{dir} eq "INOUT");
            print PYOUT "\tPyObject *param_", $p->{name}, ";\n"
                unless ($p->{dir} eq "OUT");
        } else {