summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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";
}
}