pidl: Fix our python reference handling
authorAndrew Bartlett <abartlet@samba.org>
Tue, 16 Feb 2016 01:06:28 +0000 (14:06 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 8 Mar 2016 00:58:26 +0000 (01:58 +0100)
commit9e07f3a13b41be1f019887581b2a2bd049039a3d
treeaeda3d511450482a450d6ebb0483d5b0acde08c4
parent627fdf0468e9f575ea1a5de1fd57a87a239a4b96
pidl: Fix our python reference handling

The new talloc.BaseObject allow us to hold a talloc context per
python object (there may be many referring to the same C object)
and the talloc context that the actual object pointer is under.

Another advantage is that talloc.BaseObject(), has less of
an ABI surface.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
pidl/lib/Parse/Pidl/Samba4/Python.pm
python/samba/tests/dcerpc/array.py [new file with mode: 0644]
python/samba/tests/dcerpc/rpc_talloc.py
source4/librpc/rpc/pyrpc.c