Jelmer Vernooij
d2c70d24e1
py: Properly increase the reference counter of Py_None.
2009-01-06 04:13:57 +01:00
Andrew Bartlett
83b2f1483f
Initialise 'flags' in new python ldb binding for ldb_connect
2009-01-05 20:08:04 +11:00
Stefan Metzmacher
5fa0d3d568
s4:socket: use a socket_wrapper aware function to auto close the fd event for sockets
...
metze
2009-01-03 19:58:53 +01:00
scudette@gmail.com
793f1cdbd9
Changed code to use proper talloc context instead of NULL to control memory leak.
2009-01-02 20:55:20 +01:00
scudette@gmail.com
cc9771d3da
Memory leak fixed due to accumulation of open reg keys.
2009-01-02 20:55:20 +01:00
scudette@gmail.com
de58ef45ac
Fixes uninitialised access as reported by valgrind.
2009-01-02 20:55:20 +01:00
Stefan Metzmacher
268f3e93a4
s4:lib/events: remove unused events_internal.h
...
external users need to use tevent_internal.h anyway
metze
2009-01-02 18:16:55 +01:00
Stefan Metzmacher
34cc50cb63
s4:lib/events: convert to use tevent_* functions instead of compat macros
...
metze
2009-01-02 18:16:54 +01:00
Stefan Metzmacher
25387d8942
s4:lib/events: deprecate event_context_find()
...
metze
2009-01-02 18:16:49 +01:00
Stefan Metzmacher
3f8f99eaec
s4:tevent: move event_context_find() to tevent_s4.c
...
metze
2009-01-02 18:16:48 +01:00
Stefan Metzmacher
54c0f626f5
s4:pyregistry: use tevent_context_init()
...
metze
2009-01-02 18:16:48 +01:00
Stefan Metzmacher
183c379fe5
s4:lib/tevent: rename structs
...
list=""
list="$list event_context:tevent_context"
list="$list fd_event:tevent_fd"
list="$list timed_event:tevent_timer"
for s in $list; do
o=`echo $s | cut -d ':' -f1`
n=`echo $s | cut -d ':' -f2`
r=`git grep "struct $o" |cut -d ':' -f1 |sort -u`
files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4`
for f in $files; do
cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp
mv $f.tmp $f
done
done
metze
2008-12-29 20:46:40 +01:00
Stefan Metzmacher
aec16efaf2
s4: remove unused dbwrap code
...
If we readd this later, we should share the code with
samba3 and make it async/non-blocking.
metze
2008-12-29 14:46:08 +01:00
Stefan Metzmacher
7bf5768a52
lib/tevent: rename event_* => tevent_* in the header file
...
We have compat macros to keep the callers happy.
metze
2008-12-29 08:42:00 +01:00
Kai Blin
ef1e9ed941
Fix some tevent includes, trying to fix the build
2008-12-26 14:11:10 +01:00
Jelmer Vernooij
479b4b09e1
Fix accidental condition inversion.
2008-12-24 05:39:29 +01:00
Jelmer Vernooij
1feab85be6
Rename samba-socket -> samba_socket to fix a couple more compiler
...
warnings.
2008-12-24 00:15:43 +01:00
Jelmer Vernooij
dcc4081f75
Fix more compiler warnings.
2008-12-23 23:22:57 +01:00
Jelmer Vernooij
bd64688c6a
Fix more compiler warnings in various places.
2008-12-23 22:57:11 +01:00
Jelmer Vernooij
465f78021e
Move Samba4-specific file out of common libtevent.
2008-12-23 19:28:22 +01:00
Jelmer Vernooij
227c8000df
Fix silly typo.
2008-12-23 12:14:25 +01:00
Jelmer Vernooij
4bbd2cbab7
pyldb: Provide replacement for sizeargfunc, not available before Python2.5.
2008-12-23 11:48:14 +01:00
Jelmer Vernooij
58cfb1a9e1
python: Define Py_ssize_t if the Python library doesn't.
2008-12-23 11:26:31 +01:00
Jelmer Vernooij
8ce77a57cc
pyldb: Fix segfault because of incorrect reference counting.
2008-12-23 05:36:27 +01:00
Jelmer Vernooij
112feeaa35
pyldb: Avoid use of pytalloc, as it may not be available.
2008-12-23 05:36:27 +01:00
Jelmer Vernooij
a7f64ba2f1
ldb: Include tevent.h rather than events.h.
2008-12-23 04:21:35 +01:00
Jelmer Vernooij
bbc95fb1a8
ldb: Fix linking against tevent library (rather than events)
...
replace: Fix copyright for dlfcn.c.
2008-12-23 04:18:31 +01:00
Jelmer Vernooij
4b2bdfec78
Fix build of the Python bindings now that SWIG is gone.
2008-12-22 22:08:01 +01:00
Jelmer Vernooij
d58270c537
Add header for pyparam.
2008-12-22 04:38:57 +01:00
Jelmer Vernooij
24b62772ab
Remove includes of py_*.h, which are no longer generated.
2008-12-22 04:21:20 +01:00
Jelmer Vernooij
2396d8d613
Use consistent names for dcerpc python modules; fixes messaging test.
2008-12-22 04:03:55 +01:00
Jelmer Vernooij
6efb7ff981
Fix various Python-related bugs.
2008-12-21 07:34:27 +01:00
Jelmer Vernooij
33ebc95591
Remove remaining fragments of SWIG code in pyldb.
2008-12-21 04:42:51 +01:00
Jelmer Vernooij
eeb25cf548
Fix more introduced regressions in new bindings.
2008-12-21 04:36:16 +01:00
Jelmer Vernooij
2e7a6cb6bf
py: Fix initialisation of subtypes, fix segfaults.
2008-12-21 03:08:14 +01:00
Jelmer Vernooij
64419f47da
Implement some of the stubs in misc python module.
2008-12-21 00:24:54 +01:00
Jelmer Vernooij
13fa639a29
Use plain C implementation for misc Python module rather than SWIG.
2008-12-20 23:38:30 +01:00
Jelmer Vernooij
0d585a67ed
Support subtypes of ldb.Ldb.
2008-12-20 23:00:23 +01:00
Jelmer Vernooij
94ed43390c
Fix all pyldb tests except for modules.
2008-12-20 22:21:39 +01:00
Jelmer Vernooij
759a3bcc88
Merge branch 'pyregistry' of git://git.samba.org/jelmer/samba
...
Conflicts:
source4/lib/ldb/ldb_wrap.c
2008-12-19 23:55:45 +01:00
Jelmer Vernooij
0898b96d26
Reprocess LDB SWIG file.
2008-12-19 23:48:30 +01:00
Jelmer Vernooij
071a71e27f
Specify explicit path to tevent.h, compilation breaks without it for me.
2008-12-19 22:03:11 +01:00
Jelmer Vernooij
5076c64d43
Merge branch 'master' of ssh://git.samba.org/data/git/samba
2008-12-19 21:47:45 +01:00
Jelmer Vernooij
6998ef4fe0
Avoid use of parentheses in Python import statements, as it's not supported by Python2.3.
2008-12-19 21:47:31 +01:00
Jelmer Vernooij
04bef7fe2a
Fix more tests.
2008-12-19 16:08:35 +00:00
Simo Sorce
af049ae83c
s4:cosmetic: Remove trailing tabs and spaces
2008-12-19 09:58:28 -05:00
Matthias Dieter Wallnöfer
dde0964d72
Small cosmetic LDB patch regarding return values.
...
It changes some "return 0" in "return LDB_SUCCESS"
2008-12-19 09:54:20 -05:00
Jelmer Vernooij
7f4e4df58d
Port over more functionality to new SWIGless Python module.
2008-12-19 13:41:44 +00:00
Jelmer Vernooij
e0672ae29b
Remove swig support from standalone ldb build.
2008-12-19 01:24:00 +00:00
Jelmer Vernooij
a57b1aa0f1
Initial work using manual Python bindings for LDB, rather than SWIG-generated ones.
2008-12-19 01:22:07 +00:00