pidl: Use struct pipes_struct.
authorAndreas Schneider <asn@samba.org>
Wed, 28 Jul 2010 07:23:25 +0000 (09:23 +0200)
committerAndreas Schneider <asn@samba.org>
Wed, 28 Jul 2010 08:39:22 +0000 (10:39 +0200)
pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm

index 04475d26c9c53e4e2eff8d6c7162185575d44678..1f6641522c8b18fdfa728d99851793995ce09dac 100644 (file)
@@ -100,7 +100,7 @@ sub CallWithStruct($$$$)
 
        pidl "ZERO_STRUCT(r->out);" if ($hasout);
 
-       my $proto = "_$fn->{NAME}(pipes_struct *p, struct $fn->{NAME} *r";
+       my $proto = "_$fn->{NAME}(struct pipes_struct *p, struct $fn->{NAME} *r";
        my $ret = "_$fn->{NAME}($pipes_struct, r";
        foreach (@{$fn->{ELEMENTS}}) {
                my @dir = @{$_->{DIRECTION}};
@@ -138,7 +138,7 @@ sub ParseFunction($$)
 
        my $op = "NDR_".uc($fn->{NAME});
 
-       pidl "static bool api_$fn->{NAME}(pipes_struct *p)";
+       pidl "static bool api_$fn->{NAME}(struct pipes_struct *p)";
        pidl "{";
        indent;
        pidl "const struct ndr_interface_call *call;";