summaryrefslogtreecommitdiff
path: root/source4/scripting/swig
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/swig')
-rw-r--r--source4/scripting/swig/dcerpc.i1
-rw-r--r--source4/scripting/swig/samba.i3
2 files changed, 4 insertions, 0 deletions
diff --git a/source4/scripting/swig/dcerpc.i b/source4/scripting/swig/dcerpc.i
index eb8b065e33..6be0b639f0 100644
--- a/source4/scripting/swig/dcerpc.i
+++ b/source4/scripting/swig/dcerpc.i
@@ -839,3 +839,4 @@ NTSTATUS dcerpc_pipe_connect(struct dcerpc_pipe **OUT,
%include "librpc/gen_ndr/misc.i"
%include "librpc/gen_ndr/lsa.i"
%include "librpc/gen_ndr/samr.i"
+%include "librpc/gen_ndr/winreg.i"
diff --git a/source4/scripting/swig/samba.i b/source4/scripting/swig/samba.i
index 8e0eb88533..faa46dc348 100644
--- a/source4/scripting/swig/samba.i
+++ b/source4/scripting/swig/samba.i
@@ -34,6 +34,9 @@
/* For the moment treat NTSTATUS as an integer */
+#define WERROR NTSTATUS
+
%typemap(out) NTSTATUS {
$result = PyInt_FromLong(NT_STATUS_V($1));
}
+