diff options
author | Kai Blin <kai@samba.org> | 2010-08-13 11:09:09 +0200 |
---|---|---|
committer | Kai Blin <kai@samba.org> | 2010-10-04 20:59:59 +0200 |
commit | 65d2cfdcf1517b2e99df0556eb5bcfbc0c49a453 (patch) | |
tree | 185e1a6ab71e87b623df7e86cabaab14d3c0909a /pidl/lib/Parse/Pidl/Samba4 | |
parent | da21f78099884ce425dfbb99c8c246f6fcd98a3a (diff) | |
download | samba-65d2cfdcf1517b2e99df0556eb5bcfbc0c49a453.tar.gz samba-65d2cfdcf1517b2e99df0556eb5bcfbc0c49a453.tar.bz2 samba-65d2cfdcf1517b2e99df0556eb5bcfbc0c49a453.zip |
dnsp: Parse TXT records
Diffstat (limited to 'pidl/lib/Parse/Pidl/Samba4')
-rw-r--r-- | pidl/lib/Parse/Pidl/Samba4/Python.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/Python.pm b/pidl/lib/Parse/Pidl/Samba4/Python.pm index 3318229f0e..cf554f5c0c 100644 --- a/pidl/lib/Parse/Pidl/Samba4/Python.pm +++ b/pidl/lib/Parse/Pidl/Samba4/Python.pm @@ -931,6 +931,10 @@ sub ConvertObjectFromPythonData($$$$$$;$) return; } + if ($actual_ctype->{TYPE} eq "SCALAR" and $actual_ctype->{NAME} eq "dnsp_string") { + $self->pidl("$target = PyString_AS_STRING($cvar);"); + return; + } if ($actual_ctype->{TYPE} eq "SCALAR" and $actual_ctype->{NAME} eq "NTSTATUS") { $self->pidl("$target = NT_STATUS(PyInt_AsLong($cvar));"); @@ -1095,6 +1099,7 @@ sub ConvertScalarToPython($$$) if ($ctypename eq "ipv4address") { return "PyString_FromString_check_null($cvar)"; } if ($ctypename eq "ipv6address") { return "PyString_FromString_check_null($cvar)"; } if ($ctypename eq "dnsp_name") { return "PyString_FromString_check_null($cvar)"; } + if ($ctypename eq "dnsp_string") { return "PyString_FromString_check_null($cvar)"; } if ($ctypename eq "pointer") { return "PyCObject_FromTallocPtr($cvar)"; } |