1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-15 16:23:49 +03:00
Commit Graph

311 Commits

Author SHA1 Message Date
Tim Potter
301bb069c3 r2243: Include definition for PRINTF_ATTRIBUTE in Python tdb wrapper. 2007-10-10 12:58:34 -05:00
Tim Potter
fdfabbd4a5 r2236: Zero request structure to let the REF_ALLOC flag work its magic.
Add argout typemap which throws an exception if NTSTATUS != OK and
creates a dictionary of return values.

samr_Connect2 function now works!
2007-10-10 12:58:33 -05:00
Tim Potter
5fead63618 r2235: When creating exception data, use Py_BuildValue instead of doing it
all by hand.

Use $symname to name TALLOC_CTX's created in wrapper function.  Also,
make sure to free context afterwards.

Set the DCERPC_NDR_REF_ALLOC flag in the dcerpc_pipe struct to save
use lots of initialisation.
2007-10-10 12:58:33 -05:00
Tim Potter
e1a368050d r2230: Wrapper for dcerpc_samr_Connect2(). All this glue code should be
automatically generated but at the moment it's hand coded.
2007-10-10 12:58:33 -05:00
Tim Potter
a3a85bd419 r2229: Have dcerpc_pipe_connect() throw an exception if non-zero NTSTATUS is
returned from the C function.  This way we can return the struct dcerpc_pipe
object instead of a tuple of (NTSTATUS, dcerpc_pipe) which is a bad
interface.
2007-10-10 12:58:33 -05:00
Tim Potter
f5852bf3e2 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.
2007-10-10 12:58:33 -05:00
Tim Potter
64f961f039 r2227: Get rid of annoying compiler warning. 2007-10-10 12:58:33 -05:00
Tim Potter
e6a42f7880 r2226: A bunch of fixes to get python tdb module building again. I'm not
sure how this can be integrated into the build system properly though.
Editing makefile.pl is the wrong way to do this.
2007-10-10 12:58:32 -05:00
Stefan Metzmacher
18062d2ed9 r960: convert 'unsigned int' to uint_t in the most places
metze
2007-10-10 12:56:23 -05:00
Stefan Metzmacher
f3b1d3bdc7 r888: more ..int32 -> ..int32_t stuff
metze
2007-10-10 12:56:16 -05:00
Tim Potter
bbc15d6f84 r383: Scripting extensions using swig. This commit includes only a (LGPL)
python interface to tdb and a rudimentary build system.

Configure with --with-python and make swig to build and append
$(builddir)/scripting/swig/python to PYTHONPATH.
2007-10-10 12:51:36 -05:00