summaryrefslogtreecommitdiff
path: root/pidl/pidl
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2013-01-21 18:42:45 +0100
committerGünther Deschner <gd@samba.org>2015-03-13 23:58:09 +0100
commitc686e34dc6447ebc24ce7168a76506e3e6f08f2b (patch)
tree30dff5b771fa1edb4122ee36b69d0450935c3e80 /pidl/pidl
parentf035aa57ca48668f436eeec875285b3cbe42d3c7 (diff)
downloadsamba-c686e34dc6447ebc24ce7168a76506e3e6f08f2b.tar.gz
pidl: add --template3 option to generate s3 server stubs.
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'pidl/pidl')
-rwxr-xr-xpidl/pidl8
1 files changed, 8 insertions, 0 deletions
diff --git a/pidl/pidl b/pidl/pidl
index 28a15310e21..75fa5158d81 100755
--- a/pidl/pidl
+++ b/pidl/pidl
@@ -469,6 +469,7 @@ my($opt_samba3_parser);
my($opt_samba3_server);
my($opt_samba3_ndr_client);
my($opt_samba3_ndr_server);
+my($opt_samba3_template) = 0;
my($opt_template) = 0;
my($opt_client);
my($opt_typelib);
@@ -529,6 +530,7 @@ Samba 3 output:
using Samba4's NDR code [cli_BASENAME.c]
--samba3-ndr-server[=OUTF] create server call wrapper for Samba3
using Samba4's NDR code [srv_BASENAME.c]
+ --samba3-template print a template for a pipe
Wireshark parsers:
--ws-parser[=OUTFILE] create Wireshark parser and header
@@ -554,6 +556,7 @@ my $result = GetOptions (
'dump-ndr-tree:s' => \$opt_dump_ndr_tree,
'samba3-ndr-client:s' => \$opt_samba3_ndr_client,
'samba3-ndr-server:s' => \$opt_samba3_ndr_server,
+ 'samba3-template' => \$opt_samba3_template,
'header:s' => \$opt_header,
'server:s' => \$opt_server,
'typelib:s' => \$opt_typelib,
@@ -767,6 +770,11 @@ sub process_file($)
print Parse::Pidl::Samba4::Template::Parse($pidl);
}
+ if ($opt_samba3_template) {
+ require Parse::Pidl::Samba3::Template;
+ print Parse::Pidl::Samba3::Template::Parse($pidl);
+ }
+
if (defined($opt_samba3_ndr_client)) {
my $client = ($opt_samba3_ndr_client or "$outputdir/cli_$basename.c");
my $header = $client; $header =~ s/\.c$/\.h/;