summaryrefslogtreecommitdiff
path: root/source4/build/pidl/swig.pm
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build/pidl/swig.pm')
-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})) {