diff options
author | Günther Deschner <gd@samba.org> | 2008-11-14 23:28:07 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-11-15 00:32:55 +0100 |
commit | 216c788b0cef379cf0e3edff7b28819ffe06a740 (patch) | |
tree | f753ead1a6312fe84e6361f511cacae4b98cd941 | |
parent | cf06b75f0a0e7d0513ab1128a4d189c74097216f (diff) | |
download | samba-216c788b0cef379cf0e3edff7b28819ffe06a740.tar.gz samba-216c788b0cef379cf0e3edff7b28819ffe06a740.tar.bz2 samba-216c788b0cef379cf0e3edff7b28819ffe06a740.zip |
pidl: skip generation of noopnum functions in generated s3 server.
Guenther
-rw-r--r-- | pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm b/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm index 6034fb6f16..e5d8f1c1d2 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}},"; } |