From 1c4b87c78847542a14d88966f854aa1b38162b88 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Thu, 14 Oct 2004 07:33:09 +0000 Subject: 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) --- source4/build/pidl/swig.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4/build') 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})) { -- cgit