summaryrefslogtreecommitdiff
path: root/source4/build/pidl
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-10-14 07:33:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:52 -0500
commit1c4b87c78847542a14d88966f854aa1b38162b88 (patch)
treec99f5731c82d2101ac74d2b0151085f060daec48 /source4/build/pidl
parente3627c2c6eaf8b0ede0b014aacb3478d25faf1b8 (diff)
downloadsamba-1c4b87c78847542a14d88966f854aa1b38162b88.tar.gz
samba-1c4b87c78847542a14d88966f854aa1b38162b88.tar.bz2
samba-1c4b87c78847542a14d88966f854aa1b38162b88.zip
r2966: Handle conversion of DATA_BLOB fields from Python in a slightly nicer
manner. I'm hoping to get rid of DATA_BLOB's but for the moment they make it easy to get some spoolss action happening quickly. (This used to be commit 15f8f73f8bfec099973fb8bf167020ae50346cf6)
Diffstat (limited to 'source4/build/pidl')
-rw-r--r--source4/build/pidl/swig.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/build/pidl/swig.pm b/source4/build/pidl/swig.pm
index 1ddb54c77b..e9b2d220b8 100644
--- a/source4/build/pidl/swig.pm
+++ b/source4/build/pidl/swig.pm
@@ -96,6 +96,11 @@ sub FieldFromPython($$)
return $result;
}
+ if ($e->{TYPE} eq "DATA_BLOB") {
+ $result .= "\tDATA_BLOB_ptr_from_python(mem_ctx, &s->$prefix$e->{NAME}, $obj, \"$e->{NAME}\");\n";
+ return $result;
+ }
+
# Generate conversion for element
if (util::is_scalar_type($e->{TYPE})) {