From: Günther Deschner Date: Fri, 14 Nov 2008 22:28:07 +0000 (+0100) Subject: pidl: skip generation of noopnum functions in generated s3 server. X-Git-Tag: samba-4.0.0alpha6~480^2~217 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=216c788b0cef379cf0e3edff7b28819ffe06a740;p=thirdparty%2Fsamba.git pidl: skip generation of noopnum functions in generated s3 server. Guenther --- diff --git a/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm b/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm index 6034fb6f160..e5d8f1c1d2b 100644 --- a/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm +++ b/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm @@ -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}},"; }