summaryrefslogtreecommitdiff
path: root/pidl/pidl
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-08-05 21:01:25 +0200
committerStefan Metzmacher <metze@samba.org>2010-08-12 14:31:23 +0200
commit5130e664b91636a9ca31a52897ba1d121d0252a2 (patch)
tree08930a0e669d5320e8c042cc88e5cb3f9727e04d /pidl/pidl
parent56a6a972f2eba3b668add8af69ebb3a724cea28f (diff)
downloadsamba-5130e664b91636a9ca31a52897ba1d121d0252a2.tar.gz
samba-5130e664b91636a9ca31a52897ba1d121d0252a2.tar.bz2
samba-5130e664b91636a9ca31a52897ba1d121d0252a2.zip
pidl:Samba3/ClientNDR: implement rpccli_ stubs on top of dcerpc_ stubs
metze
Diffstat (limited to 'pidl/pidl')
-rwxr-xr-xpidl/pidl7
1 files changed, 4 insertions, 3 deletions
diff --git a/pidl/pidl b/pidl/pidl
index c64ea959b1..2a46e92925 100755
--- a/pidl/pidl
+++ b/pidl/pidl
@@ -692,10 +692,11 @@ sub process_file($)
}
my $h_filename = "$outputdir/ndr_$basename.h";
- if (defined($opt_client)) {
+ my $c_header = "$outputdir/ndr_$basename\_c.h";
+ if (defined($opt_client) or defined($opt_samba3_ndr_client)) {
require Parse::Pidl::Samba4::NDR::Client;
my ($c_client) = ($opt_client or "$outputdir/ndr_$basename\_c.c");
- my ($c_header) = $c_client;
+ $c_header = $c_client;
$c_header =~ s/\.c$/.h/;
my $generator = new Parse::Pidl::Samba4::NDR::Client();
@@ -772,7 +773,7 @@ sub process_file($)
my $header = $client; $header =~ s/\.c$/\.h/;
require Parse::Pidl::Samba3::ClientNDR;
my $generator = new Parse::Pidl::Samba3::ClientNDR();
- my ($c_code,$h_code) = $generator->Parse($ndr, $header, $h_filename);
+ my ($c_code,$h_code) = $generator->Parse($ndr, $header, $c_header);
FileSave($client, $c_code);
FileSave($header, $h_code);
}