Skip to content

Commit

Permalink
pidl: add more mapped types
Browse files Browse the repository at this point in the history
when we #define one type to another, we need special handling in the
python generator

Autobuild-User: Andrew Tridgell <[email protected]>
Autobuild-Date: Wed Feb  8 04:50:06 CET 2012 on sn-devel-104
  • Loading branch information
Andrew Tridgell committed Feb 8, 2012
1 parent a9e2b62 commit 75628e6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pidl/lib/Parse/Pidl/Samba4/Python.pm
Original file line number Diff line number Diff line change
Expand Up @@ -826,9 +826,15 @@ sub use_type_variable($$)
my ($self, $orig_ctype) = @_;
# FIXME: Have a global lookup table for types that look different on the
# wire than they are named in C?
if ($orig_ctype->{NAME} eq "dom_sid2" or $orig_ctype->{NAME} eq "dom_sid28") {
if ($orig_ctype->{NAME} eq "dom_sid2" or
$orig_ctype->{NAME} eq "dom_sid28" or
$orig_ctype->{NAME} eq "dom_sid0") {
$orig_ctype->{NAME} = "dom_sid";
}
if ($orig_ctype->{NAME} eq "spoolss_security_descriptor") {
$orig_ctype->{NAME} = "security_descriptor";
}

my $ctype = resolveType($orig_ctype);
unless (defined($ctype->{BASEFILE})) {
return undef;
Expand Down

0 comments on commit 75628e6

Please sign in to comment.