diff options
author | Andrew Tridgell <tridge@samba.org> | 2012-02-08 13:01:32 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2012-02-08 04:50:06 +0100 |
commit | 75628e693aa6fad6d247d6ac774de03c52c33d90 (patch) | |
tree | 5bffe8e4aefe0da9c19c17112ddc03f24cd5b623 /pidl/lib/Parse | |
parent | a9e2b620ca5f00c1cb1d4274ed57a5f6c93b7102 (diff) | |
download | samba-75628e693aa6fad6d247d6ac774de03c52c33d90.tar.gz samba-75628e693aa6fad6d247d6ac774de03c52c33d90.tar.bz2 samba-75628e693aa6fad6d247d6ac774de03c52c33d90.zip |
pidl: add more mapped types
when we #define one type to another, we need special handling in the
python generator
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Feb 8 04:50:06 CET 2012 on sn-devel-104
Diffstat (limited to 'pidl/lib/Parse')
-rw-r--r-- | pidl/lib/Parse/Pidl/Samba4/Python.pm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/Python.pm b/pidl/lib/Parse/Pidl/Samba4/Python.pm index 63f41a10ea..39884ab278 100644 --- a/pidl/lib/Parse/Pidl/Samba4/Python.pm +++ b/pidl/lib/Parse/Pidl/Samba4/Python.pm @@ -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; |