summaryrefslogtreecommitdiffstats
path: root/lib/talloc/pytalloc.c
Commit message (Collapse)AuthorAgeFilesLines
* talloc: remove unused variablesBjörn Jacke2012-07-051-5/+0
| | | | | | | found by the IRIX compiler Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Thu Jul 5 23:50:54 CEST 2012 on sn-devel-104
* pytalloc: Use consistent prefix for functions, add ABI file.Jelmer Vernooij2011-08-101-21/+21
|
* Revert broken destructor changes.Jelmer Vernooij2011-01-031-1/+1
|
* s4-python: Properly call PyObject_Del from all destructors.Jelmer Vernooij2011-01-031-1/+1
|
* s4-python: Only set BASETYPE flag if subclassing is supported.Jelmer Vernooij2011-01-011-3/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Jan 1 03:39:58 CET 2011 on sn-devel-104
* s4-python: Add more prototypes.Jelmer Vernooij2011-01-011-0/+2
|
* s4-python: Properly call PyObject_Del from all destructors.Jelmer Vernooij2011-01-011-1/+1
|
* pytalloc: Add docstring for talloc.Object.Jelmer Vernooij2010-12-051-1/+3
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Dec 5 18:12:59 CET 2010 on sn-devel-104
* pytalloc: Make py_talloc_default_cmp private.Jelmer Vernooij2010-12-011-0/+15
|
* pytalloc: Make py_talloc_dealloc private.Jelmer Vernooij2010-12-011-0/+11
|
* pytalloc: Make py_talloc_default_repr private (now exposed by talloc.Object).Jelmer Vernooij2010-12-011-0/+12
|
* talloc: Add talloc object.Jelmer Vernooij2010-11-301-0/+15
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Nov 30 23:26:56 CET 2010 on sn-devel-104
* pytalloc: Make some arguments optional.Jelmer Vernooij2010-11-071-6/+6
|
* talloc: Add python talloc module, move convenience functions to it.Jelmer Vernooij2010-11-051-0/+84
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Fri Nov 5 02:48:21 UTC 2010 on sn-devel-104
* talloc: rename pytalloc.c to pytalloc_util.cJelmer Vernooij2010-11-051-135/+0
|
* talloc: pytalloc should not depend on samba specific codeStefan Metzmacher2010-10-241-3/+2
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sun Oct 24 19:21:25 UTC 2010 on sn-devel-104
* pytalloc: use talloc_unlink() to free py_talloc objectsKamen Mazdrashki2010-10-201-1/+3
| | | | | | | | | | | Those type of objects are referenced every time we assign them to other py_talloc objects, which leads to runtime warnings that we are trying to free an object with references Wrap talloc_unlink() in SMB_ASSERT() to ensure we catch possible failure Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Wed Oct 20 21:37:06 UTC 2010 on sn-devel-104
* pytalloc: Fix warning that we are subtracting void* pointersKamen Mazdrashki2010-10-081-1/+1
| | | | | Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Fri Oct 8 23:36:54 UTC 2010 on sn-devel-104
* pytalloc: Add default compare function.Jelmer Vernooij2010-09-211-1/+14
|
* pidl: Fix segfault when accessing unicode objects.Jelmer Vernooij2010-09-201-9/+0
|
* pidl-python: cope with NULL pointers in more placesAndrew Tridgell2010-09-021-0/+20
| | | | NULL is converted to Py_None
* pytalloc: treat a NULL ptr as Py_NoneAndrew Tridgell2010-09-021-1/+7
|
* pytalloc: fixed py_talloc_steal()Andrew Tridgell2010-08-251-0/+8
| | | | | | | | | | | py_talloc_steal() was implemented as a macro which evaluated it's 2nd argument twice. It was often called via a macro with a 2nd argument that was a function call, for example an allocation in py_talloc_new(). This meant it allocated memory twice, and leaked one of them. This re-implements py_talloc_steal() as a function, so that it only does the allocation once.
* s4-pytalloc: use better names for python talloc objectsAndrew Tridgell2010-08-251-0/+2
|
* pytalloc: allow for using a system libtalloc-dev with pytallocAndrew Tridgell2010-03-291-1/+1
| | | | | | | | | When we have a system talloc library, we still need to grab pytalloc.h from lib/talloc. We don't want to just use -Ilib/talloc, as otherwise we'll get the in-tree talloc.h which may not be compatible with the system talloc.h So we need to give the path to pytalloc.h
* s4: Include Python.h early to avoid double definition errors.Jelmer Vernooij2010-01-211-0/+1
|
* pidl: Avoid using talloc_free as function pointer, since it may be aJelmer Vernooij2009-09-281-0/+10
| | | | macro.
* DCE/RPC(Python): Rename py_talloc_import to py_talloc_steal.Jelmer Vernooij2009-07-301-3/+3
| | | | | Use py_talloc_reference in DCE/RPC code, fixes access to SAMR pipe.
* fixed use of reference in pytallocAndrew Tridgell2009-07-011-3/+23
| | | | | | | | | | | | The previous code caused memory leaks, and also caused situations where talloc_free could be called on pointers with multiple parents The new approach is to have two functions: py_talloc_import : steals the pointer, so it becomes wholly owned by the python object py_talloc_reference: uses a reference, so it is owned by both python and C
* lib/talloc: include replace.h in pytalloc.cStefan Metzmacher2009-01-301-0/+1
| | | | | | This fixes the build on Tru64. metze
* pytalloc: Add some comments, use talloc object location in repr ratherJelmer Vernooij2008-12-231-5/+15
| | | | than python object location.
* py: Fix initialisation of subtypes, fix segfaults.Jelmer Vernooij2008-12-211-2/+2
|
* Move pytalloc to talloc directory.Jelmer Vernooij2008-10-241-0/+52