diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-03-22 20:01:15 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:59:05 -0500 |
commit | 3c7df1118c5bc42a323bb28ac893706dd64043d0 (patch) | |
tree | aaca923a004e711b144f96fa51822f2be4d72152 /source4/pidl/lib | |
parent | f805808baec1ee58ac4f4b8e551809451697d48d (diff) | |
download | samba-3c7df1118c5bc42a323bb28ac893706dd64043d0.tar.gz samba-3c7df1118c5bc42a323bb28ac893706dd64043d0.tar.bz2 samba-3c7df1118c5bc42a323bb28ac893706dd64043d0.zip |
r14658: Include ndr_obfuscate.h when necessary
(This used to be commit 3647bd31244c9a44a4fae8a20a3176b85f4a0b3d)
Diffstat (limited to 'source4/pidl/lib')
-rw-r--r-- | source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm b/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm index e7f8c85a90..bc7e4ce545 100644 --- a/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm +++ b/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm @@ -2314,6 +2314,10 @@ sub ParseInterface($$) if ($needed->{"compression"}) { pidl choose_header("librpc/ndr/ndr_compression.h", "ndr/compression.h"); } + + if ($needed->{"obfuscate"}) { + pidl "#include \"ndr_obfuscate.h\""; + } HeaderInterface($interface); @@ -2432,6 +2436,9 @@ sub NeededTypedef($$) if (has_property($e, "compression")) { $needed->{"compression"} = 1; } + if (has_property($e, "obfuscation")) { + $needed->{"obfuscate"} = 1; + } if ($needed->{"pull_$t->{NAME}"} and not defined($needed->{"pull_$e->{TYPE}"})) { $needed->{"pull_$e->{TYPE}"} = 1; |