summaryrefslogtreecommitdiff
path: root/source4/scripting/swig/samba.i
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-09-05 02:06:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:33 -0500
commit779b89cfc8e65b8e6a4ad2d868ab04f014a4bc20 (patch)
tree2711017877e9ad79a3c0ae56ee94031776500329 /source4/scripting/swig/samba.i
parent5230295b6b927649cb304790f781fdff18fc162d (diff)
downloadsamba-779b89cfc8e65b8e6a4ad2d868ab04f014a4bc20.tar.gz
samba-779b89cfc8e65b8e6a4ad2d868ab04f014a4bc20.tar.bz2
samba-779b89cfc8e65b8e6a4ad2d868ab04f014a4bc20.zip
r2228: Finally commit bits of old workareas together to get dcerpc python
bindings happening. This commit lets python call dcerpc_pipe_connect() and open the samr pipe. (This used to be commit f5852bf3e2064f03aa9b63af4aa1b4f9e39bdb24)
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));
+}