summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-10-01 07:36:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:31 -0500
commitb11be587e06705ef68da91e3ff766595d3c62c20 (patch)
treef529f85b3fb98008eb5565e93313d8110e3f2780 /source4/scripting
parentdb84d32d08ad4d33f8614c9fed42baa8f4e0d443 (diff)
downloadsamba-b11be587e06705ef68da91e3ff766595d3c62c20.tar.gz
samba-b11be587e06705ef68da91e3ff766595d3c62c20.tar.bz2
samba-b11be587e06705ef68da91e3ff766595d3c62c20.zip
r2765: Allow functions containing WERROR values to be compiled.
Add winreg.i to list of extensions. (This used to be commit 6f3f6de058e806f13f48d3d1300db3784d2f470c)
Diffstat (limited to 'source4/scripting')
-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));
}
+