summaryrefslogtreecommitdiff
path: root/source4/build/pidl
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-02-21 11:44:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:10:49 -0500
commit3d507012fe4dc5dc21f7c055dc6c39b117a87d34 (patch)
treefb7dd507c23387c82d141e2edb84aeacdd4f1f08 /source4/build/pidl
parentc708ef80159d1b20a1319553c0ae3ecf602f03df (diff)
downloadsamba-3d507012fe4dc5dc21f7c055dc6c39b117a87d34.tar.gz
samba-3d507012fe4dc5dc21f7c055dc6c39b117a87d34.tar.bz2
samba-3d507012fe4dc5dc21f7c055dc6c39b117a87d34.zip
r5485: Support nopull,nopush in header.pm as well.
(This used to be commit d0d4251d6f8718256fd3baf7db4969dcf6073283)
Diffstat (limited to 'source4/build/pidl')
-rw-r--r--source4/build/pidl/header.pm10
1 files changed, 7 insertions, 3 deletions
diff --git a/source4/build/pidl/header.pm b/source4/build/pidl/header.pm
index ba73570dab..eeb2886bce 100644
--- a/source4/build/pidl/header.pm
+++ b/source4/build/pidl/header.pm
@@ -224,9 +224,13 @@ sub HeaderTypedefProto($)
my $pull_args = $tf->{PULL_FN_ARGS}->($d);
my $push_args = $tf->{PUSH_FN_ARGS}->($d);
my $print_args = $tf->{PRINT_FN_ARGS}->($d);
- pidl "NTSTATUS ndr_push_$d->{NAME}($push_args);\n";
- pidl "NTSTATUS ndr_pull_$d->{NAME}($pull_args);\n";
- if (!util::has_property($d, "noprint")) {
+ unless (util::has_property($d, "nopush")) {
+ pidl "NTSTATUS ndr_push_$d->{NAME}($push_args);\n";
+ }
+ unless (util::has_property($d, "nopull")) {
+ pidl "NTSTATUS ndr_pull_$d->{NAME}($pull_args);\n";
+ }
+ unless (util::has_property($d, "noprint")) {
pidl "void ndr_print_$d->{NAME}($print_args);\n";
}
}