From 3d507012fe4dc5dc21f7c055dc6c39b117a87d34 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 21 Feb 2005 11:44:36 +0000 Subject: r5485: Support nopull,nopush in header.pm as well. (This used to be commit d0d4251d6f8718256fd3baf7db4969dcf6073283) --- source4/build/pidl/header.pm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'source4') 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"; } } -- cgit