diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-01-31 11:54:01 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:44:28 -0500 |
commit | dd08678adda6067a302677f4259719669261c081 (patch) | |
tree | 186f47e427f661e9b13f4f234217f524c1396705 /source4/pidl/lib/Parse | |
parent | a9a3e4eafc8ae67ebd00a476cf34bd69400413ba (diff) | |
download | samba-dd08678adda6067a302677f4259719669261c081.tar.gz samba-dd08678adda6067a302677f4259719669261c081.tar.bz2 samba-dd08678adda6067a302677f4259719669261c081.zip |
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)
Diffstat (limited to 'source4/pidl/lib/Parse')
-rw-r--r-- | source4/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm | 8 |
1 files changed, 2 insertions, 6 deletions
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 .= ");"; |