pidl: do not generate cli_ functions for noopnum flaged functions.
authorGünther Deschner <gd@samba.org>
Fri, 14 Nov 2008 21:15:30 +0000 (22:15 +0100)
committerGünther Deschner <gd@samba.org>
Fri, 14 Nov 2008 23:32:55 +0000 (00:32 +0100)
Guenther

pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm

index 2a23fad4a70e5522b7d3dfdf7184818a87a17edb..4109ce996211ad51881ebbcab302fff32a0461ec 100644 (file)
@@ -215,7 +215,10 @@ sub ParseInterface($$)
 
        $self->pidl_hdr("#ifndef __CLI_$uif\__");
        $self->pidl_hdr("#define __CLI_$uif\__");
-       $self->ParseFunction($if->{NAME}, $_) foreach (@{$if->{FUNCTIONS}});
+       foreach (@{$if->{FUNCTIONS}}) {
+               next if ($_->{PROPERTIES}{noopnum});
+               $self->ParseFunction($if->{NAME}, $_);
+       }
        $self->pidl_hdr("#endif /* __CLI_$uif\__ */");
 }