From dd08678adda6067a302677f4259719669261c081 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 31 Jan 2007 11:54:01 +0000 Subject: r21075: Generate parameters in structs for the server side Samba 3 code. The current code in Samba 3 is already generated using this pidl patch. (This used to be commit 30a06273d28fb59c6f20154f97c67f4c0a63dee9) --- source4/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'source4/pidl/lib/Parse/Pidl/Samba3') diff --git a/source4/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm b/source4/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm index 97cbc8b0ab..52e384814d 100644 --- a/source4/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm +++ b/source4/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm @@ -133,8 +133,8 @@ sub ParseFunction($$) pidl "ZERO_STRUCT(r.out);" if ($hasout); - my $proto = "_$fn->{NAME}(pipes_struct *p"; - my $ret = "_$fn->{NAME}(p"; + my $proto = "_$fn->{NAME}(pipes_struct *p, struct $fn->{NAME} *r"; + my $ret = "_$fn->{NAME}(p, &r"; foreach (@{$fn->{ELEMENTS}}) { my @dir = @{$_->{DIRECTION}}; if (grep(/in/, @dir) and grep(/out/, @dir)) { @@ -143,10 +143,6 @@ sub ParseFunction($$) has_property($_, "represent_as")) { AllocOutVar($_, "mem_ctx", "r.out.$_->{NAME}", \%env); } - if (grep(/in/, @dir)) { $ret .= ", r.in.$_->{NAME}"; } - else { $ret .= ", r.out.$_->{NAME}"; } - - $proto .= ", " . DeclLong($_); } $ret .= ")"; $proto .= ");"; -- cgit