summaryrefslogtreecommitdiff
path: root/pidl/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-08-01 11:32:48 +0200
committerStefan Metzmacher <metze@samba.org>2011-08-01 13:44:26 +0200
commite7a7a2451fc4821a265ec3d1495085ea142a4554 (patch)
tree600e1d8841929686e5c41ee3d0f6780ec61d241e /pidl/lib
parent7ae14ed6662d4d8fb0034931dcac34d3c032d5dd (diff)
downloadsamba-e7a7a2451fc4821a265ec3d1495085ea142a4554.tar.gz
samba-e7a7a2451fc4821a265ec3d1495085ea142a4554.tar.bz2
samba-e7a7a2451fc4821a265ec3d1495085ea142a4554.zip
pidl:NDR/Parser: use interface->{UUID} and {NAME} instead of the raw {PROPERTIES}
metze
Diffstat (limited to 'pidl/lib')
-rw-r--r--pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm b/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
index e80a77895e..406fc02cec 100644
--- a/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
+++ b/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
@@ -2666,10 +2666,9 @@ sub HeaderInterface($$$)
if (defined $interface->{PROPERTIES}->{uuid}) {
my $name = uc $interface->{NAME};
$self->pidl_hdr("#define NDR_$name\_UUID " .
- Parse::Pidl::Util::make_str(lc($interface->{PROPERTIES}->{uuid})));
+ Parse::Pidl::Util::make_str(lc($interface->{UUID})));
- if(!defined $interface->{PROPERTIES}->{version}) { $interface->{PROPERTIES}->{version} = "0.0"; }
- $self->pidl_hdr("#define NDR_$name\_VERSION $interface->{PROPERTIES}->{version}");
+ $self->pidl_hdr("#define NDR_$name\_VERSION $interface->{VERSION}");
$self->pidl_hdr("#define NDR_$name\_NAME \"$interface->{NAME}\"");