Integer INOUT args should take an int in PyArg_ParseTuple() rather than an
arbitrary object as the code now doesn't pass results back through the argument
list.
Signed-off-by: David Howells <dhowells@redhat.com>
print PYOUT "\tif (!PyArg_ParseTuple(args, \"O!";
foreach my $p (@{$func->{request}}) {
- if ($p->{dir} ne "IN") { print PYOUT "O!";
- } elsif ($p->{class} eq "bulk") { print PYOUT "O!";
+ if ($p->{class} eq "bulk") { print PYOUT "O!";
} elsif ($p->{type} eq "int8_t") { print PYOUT "B";
} elsif ($p->{type} eq "int16_t") { print PYOUT "h";
} elsif ($p->{type} eq "int32_t") { print PYOUT "i";