From 779b89cfc8e65b8e6a4ad2d868ab04f014a4bc20 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Sun, 5 Sep 2004 02:06:11 +0000 Subject: 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) --- source4/scripting/swig/samba.i | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source4/scripting/swig/samba.i') 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)); +} -- cgit