diff options
author | Tim Potter <tpot@samba.org> | 2004-10-31 11:33:40 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:05:06 -0500 |
commit | 751b412326e77ee4bea0c521906e6f83a8bedd07 (patch) | |
tree | 26a827aa52c31fd25c01c32f4bfd445584d11eda /source4/build | |
parent | 12fb5bc0cbc8b3180d8319a169611945ae42a242 (diff) | |
download | samba-751b412326e77ee4bea0c521906e6f83a8bedd07.tar.gz samba-751b412326e77ee4bea0c521906e6f83a8bedd07.tar.bz2 samba-751b412326e77ee4bea0c521906e6f83a8bedd07.zip |
r3410: Handle conversion of DATA_BLOBs and pointers to DATA_BLOBs from python.
(This used to be commit 12e037dbe3d497aff2415c0a22fab20a7932ab7a)
Diffstat (limited to 'source4/build')
-rw-r--r-- | source4/build/pidl/swig.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/build/pidl/swig.pm b/source4/build/pidl/swig.pm index 20b658b19f..55ded24f21 100644 --- a/source4/build/pidl/swig.pm +++ b/source4/build/pidl/swig.pm @@ -97,7 +97,11 @@ sub FieldFromPython($$) } if ($e->{TYPE} eq "DATA_BLOB") { - $result .= "\tDATA_BLOB_ptr_from_python(mem_ctx, &s->$prefix$e->{NAME}, $obj, \"$e->{NAME}\");\n"; + if ($e->{POINTERS} == 0) { + $result .= "\tDATA_BLOB_from_python(mem_ctx, &s->$prefix$e->{NAME}, $obj, \"$e->{NAME}\");\n"; + } else { + $result .= "\tDATA_BLOB_ptr_from_python(mem_ctx, &s->$prefix$e->{NAME}, $obj, \"$e->{NAME}\");\n"; + } return $result; } |