pidl: skip generation of noopnum functions in generated s3 server.
authorGünther Deschner <gd@samba.org>
Fri, 14 Nov 2008 22:28:07 +0000 (23:28 +0100)
committerGünther Deschner <gd@samba.org>
Fri, 14 Nov 2008 23:32:55 +0000 (00:32 +0100)
Guenther

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

index 6034fb6f160ecdef84152cc2612f3282638cd1b5..e5d8f1c1d2b8c4ae42710d59e4b47dd7949384a2 100644 (file)
@@ -205,7 +205,11 @@ sub ParseInterface($)
 
        pidl_hdr "#ifndef __SRV_$uif\__";
        pidl_hdr "#define __SRV_$uif\__";
-       ParseFunction($if, $_) foreach (@{$if->{FUNCTIONS}});
+
+       foreach (@{$if->{FUNCTIONS}}) {
+               next if ($_->{PROPERTIES}{noopnum});
+               ParseFunction($if, $_);
+       }
 
        pidl "";
        pidl "/* Tables */";
@@ -214,6 +218,7 @@ sub ParseInterface($)
        indent;
 
        foreach (@{$if->{FUNCTIONS}}) {
+               next if ($_->{PROPERTIES}{noopnum});
                pidl "{\"" . uc($_->{NAME}) . "\", NDR_" . uc($_->{NAME}) . ", api_$_->{NAME}},";
        }