summaryrefslogtreecommitdiff
path: root/source4/scripting/swig/samba.i
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/swig/samba.i
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/swig/samba.i')
-rw-r--r--source4/scripting/swig/samba.i3
1 files changed, 3 insertions, 0 deletions
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));
}
+