summaryrefslogtreecommitdiff
path: root/source4/scripting/swig/samba.i
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/swig/samba.i')
-rw-r--r--source4/scripting/swig/samba.i6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/scripting/swig/samba.i b/source4/scripting/swig/samba.i
index 60f2efcc19..8e0eb88533 100644
--- a/source4/scripting/swig/samba.i
+++ b/source4/scripting/swig/samba.i
@@ -31,3 +31,9 @@
}
$1 = (uint32_t)PyInt_AsLong($input);
}
+
+/* For the moment treat NTSTATUS as an integer */
+
+%typemap(out) NTSTATUS {
+ $result = PyInt_FromLong(NT_STATUS_V($1));
+}