summaryrefslogtreecommitdiff
path: root/source4/build/pidl/parser.pm
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build/pidl/parser.pm')
-rw-r--r--source4/build/pidl/parser.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/source4/build/pidl/parser.pm b/source4/build/pidl/parser.pm
index 88d6cee0db..5a67f3d193 100644
--- a/source4/build/pidl/parser.pm
+++ b/source4/build/pidl/parser.pm
@@ -1259,6 +1259,10 @@ sub ParseTypedefPush($)
return;
}
+ if (defined($e->{PROPERTIES}) && !defined($e->{DATA}->{PROPERTIES})) {
+ $e->{DATA}->{PROPERTIES} = $e->{PROPERTIES};
+ }
+
if ($e->{DATA}->{TYPE} eq "STRUCT") {
pidl $static . "NTSTATUS ndr_push_$e->{NAME}(struct ndr_push *ndr, int ndr_flags, struct $e->{NAME} *r)";
pidl "\n{\n";
@@ -1292,6 +1296,10 @@ sub ParseTypedefPull($)
my($e) = shift;
my $static = fn_prefix($e);
+ if (defined($e->{PROPERTIES}) && !defined($e->{DATA}->{PROPERTIES})) {
+ $e->{DATA}->{PROPERTIES} = $e->{PROPERTIES};
+ }
+
if (! needed::is_needed("pull_$e->{NAME}")) {
# print "pull_$e->{NAME} not needed\n";
return;
@@ -1329,6 +1337,10 @@ sub ParseTypedefPrint($)
{
my($e) = shift;
+ if (defined($e->{PROPERTIES}) && !defined($e->{DATA}->{PROPERTIES})) {
+ $e->{DATA}->{PROPERTIES} = $e->{PROPERTIES};
+ }
+
if ($e->{DATA}->{TYPE} eq "STRUCT") {
pidl "void ndr_print_$e->{NAME}(struct ndr_print *ndr, const char *name, struct $e->{NAME} *r)";
pidl "\n{\n";