summaryrefslogtreecommitdiff
path: root/pidl/pidl
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2019-06-25 15:41:40 +1200
committerAndrew Bartlett <abartlet@samba.org>2019-06-26 04:12:33 +0000
commit5df815cfd21c33eaa0e38196490066f214356bd3 (patch)
tree1f4dfb151a2746d2f4d87da1448eb04e91ae2f9a /pidl/pidl
parent46bf62dd0c67e90dcbefe7f7a106f1b5927b08f6 (diff)
downloadsamba-5df815cfd21c33eaa0e38196490066f214356bd3.tar.gz
pidl: Remove the need to always specify --client with --python
This allows us to avoid generating client code for NDR-only protocols that do not go over DCE/RPC Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'pidl/pidl')
-rwxr-xr-xpidl/pidl5
1 files changed, 4 insertions, 1 deletions
diff --git a/pidl/pidl b/pidl/pidl
index 78834144781..06b0f78a485 100755
--- a/pidl/pidl
+++ b/pidl/pidl
@@ -712,8 +712,11 @@ sub process_file($)
if (defined($opt_python)) {
require Parse::Pidl::Samba4::Python;
my $generator = new Parse::Pidl::Samba4::Python();
+ if (!defined($opt_client)) {
+ $c_header = undef;
+ }
my ($prsr) = $generator->Parse($basename, $ndr,
- "$outputdir/ndr_$basename\_c.h", $h_filename);
+ $c_header, $h_filename);
FileSave("$outputdir/py_$basename.c", $prsr);
}