talloc: add _pytalloc_get_ptr/_pytalloc_get_mem_ctx helper functions
authorAndrew Bartlett <abartlet@samba.org>
Mon, 22 Feb 2016 01:29:15 +0000 (14:29 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 8 Mar 2016 00:58:26 +0000 (01:58 +0100)
commit42eae4dec6209aa5cae0d48f17f33c1ab67b6f03
tree2f4014eef07f85b4c3f7f612a1e0d056888c4646
parentcd8d9300213dcdeb5bdfbbb7a71ae4b82e042470
talloc: add _pytalloc_get_ptr/_pytalloc_get_mem_ctx helper functions

This allows us to check which type is involved, and dereference
that type correctly

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
lib/talloc/pytalloc.h
lib/talloc/pytalloc_util.c
lib/talloc/test_pytalloc.c
lib/talloc/wscript