summaryrefslogtreecommitdiff
path: root/source4/lib/messaging/pymessaging.c
AgeCommit message (Collapse)AuthorFilesLines
2010-05-18Finish removal of iconv_convenience in public API's.Jelmer Vernooij1-4/+0
2010-04-20pytalloc: ensure talloc_ctx is directly after PyObject_HEADAndrew Tridgell1-2/+2
the talloc python interface for tp_alloc and tp_dealloc relies on a cast to a py_talloc_Object to find the talloc_ctx (see py_talloc_dealloc). This means we rely on the talloc_ctx for the object being directly after the PyObject_HEAD This fixes the talloc free with references bug in samba_dnsupdate The actual problem was the tp_alloc() call in PyCredentialCacheContainer_from_ccache_container() which used a cast from a py_talloc_Object to a PyCredentialCacheContainerObject. That case effectively changed the parent/child relationship between the talloc_ctx and the ccc ptr. This patch changes all the structures that follow this pattern to put the TALLOC_CTX directly after the PyObject_HEAD, to ensure that if anyone else decides to do a dangerous cast like this that it won't cause the same sort of subtle breakage. Pair-Programmed-With: Rusty Russell <rusty@samba.org>
2010-03-23s4:lib/messaging: pymessaging needs libndr.hStefan Metzmacher1-0/+1
metze
2010-02-09s4:Remove "Py_RETURN_NONE" compatibility codeMatthias Dieter Wallnöfer1-4/+0
This was needed only by Python 2.3 which we no longer support.
2009-11-07s4:lib/messaging - fix up the python bindingsMatthias Dieter Wallnöfer1-5/+6
This fixes up the broken "send" method of the python bindings and corrects some other parameter lists in parsing functions (this is only cosmetic). The reason for the bug was a superfluous "|"!
2009-10-23s4-python: we need to include Python.h firstAndrew Tridgell1-1/+1
If we don't include Python.h first then we get a pile of warnings due to broken redefines of XOPEN_SOURCE in the Python includes.
2009-06-02Fix unresolved symbol in python messaging module.Jelmer Vernooij1-3/+1
2009-02-02s4:lib/messaging: s/private/private_dataStefan Metzmacher1-2/+2
metze
2009-01-08Avoid using a utility header for Python replacements included in Samba,Jelmer Vernooij1-1/+5
since this will not be shipped with talloc/tdb/tevent/etc.
2009-01-07s3/s4 build: Fix Py_RETURN_NONE to work with python versions < 2.4Tim Prouty1-1/+1
2009-01-06py: Properly increase the reference counter of Py_None.Jelmer Vernooij1-4/+4
2008-12-29s4:lib/tevent: rename structsStefan Metzmacher1-2/+2
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-22Remove includes of py_*.h, which are no longer generated.Jelmer Vernooij1-1/+3
2008-12-22Use consistent names for dcerpc python modules; fixes messaging test.Jelmer Vernooij1-3/+5
2008-11-02Remove use of global loadparm in python modules.Jelmer Vernooij1-2/+7
2008-10-24Remove more uses of global_loadparm.Jelmer Vernooij1-2/+2
2008-10-24Remove a few more usages of global_loadparm.Jelmer Vernooij1-2/+2
2008-10-24Eliminate another instance of global_loadparm.Jelmer Vernooij1-2/+3
2008-06-14Use a custom init function for samba4 that sets a samba4Simo Sorce1-2/+2
specific debug function. By default do not debug, this is the most appropriate action for a library as we cannot assume what stderr is use for in the main app. The main app is responsible to set ev_debug_stderr if they so desire. (This used to be commit e566a2f308ac6fb4b526a744f7059b565670aea5)
2008-05-30two more places where the wrong type is passed to PyArg_ParseTupleAndKeywords()Andrew Tridgell1-4/+6
(This used to be commit db6122ec104e80ee2e02b1170ff808b6456b780b)
2008-05-30fixed a segv in the python messaging code on 64 bit systemsAndrew Tridgell1-1/+4
(This used to be commit 7598c8389745fcc77da341b4af2dcef6a01db700)
2008-05-26Finish smbstatus in Python.Jelmer Vernooij1-0/+3
(This used to be commit 988508c2d3269cc88ed38df2fc207a1c0aaccc6b)
2008-05-26Allow using IRPC functions on the messaging bus from Python.Jelmer Vernooij1-0/+556
(This used to be commit 6ecf81ae13dffa05356c1177c617206c120fb7d7)