diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-05-30 09:07:21 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:17:16 -0500 |
commit | 2a20e42c2637a6d53d74f3c68a4f420f8cb77a27 (patch) | |
tree | cec1b76d704f47c085b4a1f645350b0e6848e7f2 /source4/build/pidl/ndr_parser.pm | |
parent | 9ab8ed3bab065afb0ba98277b7e4728b24caabe0 (diff) | |
download | samba-2a20e42c2637a6d53d74f3c68a4f420f8cb77a27.tar.gz samba-2a20e42c2637a6d53d74f3c68a4f420f8cb77a27.tar.bz2 samba-2a20e42c2637a6d53d74f3c68a4f420f8cb77a27.zip |
r7098: - make use of the NDR table instead of the IDL table in the client and server generation
- add 'noid' property to allow functions to be not present in the function table,
and not generate client and server functions for them
- print out a warning about [id()] not being correctly supported yet
metze
(This used to be commit 189730d1430e7f728d62dd5dc52f2a90c1a556d7)
Diffstat (limited to 'source4/build/pidl/ndr_parser.pm')
-rw-r--r-- | source4/build/pidl/ndr_parser.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/build/pidl/ndr_parser.pm b/source4/build/pidl/ndr_parser.pm index a73675159b..edc6df31ad 100644 --- a/source4/build/pidl/ndr_parser.pm +++ b/source4/build/pidl/ndr_parser.pm @@ -2061,7 +2061,9 @@ sub FunctionTable($) return if ($count == 0); pidl "static const struct dcerpc_interface_call $interface->{NAME}\_calls[] = {"; + $count = 0; foreach my $d (@{$interface->{FUNCTIONS}}) { + next if not defined($d->{OPNUM}); pidl "\t{"; pidl "\t\t\"$d->{NAME}\","; pidl "\t\tsizeof(struct $d->{NAME}),"; @@ -2069,6 +2071,7 @@ sub FunctionTable($) pidl "\t\t(ndr_pull_flags_fn_t) ndr_pull_$d->{NAME},"; pidl "\t\t(ndr_print_function_t) ndr_print_$d->{NAME}"; pidl "\t},"; + $count++; } pidl "\t{ NULL, 0, NULL, NULL, NULL }"; pidl "};"; |