Skip to content

Commit

Permalink
pidl:NDR/Parser: use interface->{UUID} and {NAME} instead of the raw …
Browse files Browse the repository at this point in the history
…{PROPERTIES}

metze
  • Loading branch information
metze-samba committed Aug 1, 2011
1 parent 7ae14ed commit e7a7a24
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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}\"");

Expand Down

0 comments on commit e7a7a24

Please sign in to comment.