From c1a9b68623a663c36451df31aa44fe5f0e22af17 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 21 Dec 2008 00:37:31 +0100 Subject: Create and use convenience function for creating new talloc-wrapping Python Objects, support subtypes of DCE/RPC interfaces properly --- lib/talloc/pytalloc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/talloc/pytalloc.h b/lib/talloc/pytalloc.h index bff6f31d27..e6745f937d 100644 --- a/lib/talloc/pytalloc.h +++ b/lib/talloc/pytalloc.h @@ -48,4 +48,6 @@ PyObject *py_talloc_import_ex(PyTypeObject *py_type, TALLOC_CTX *mem_ctx, void * /* Sane default implementation of reprfunc. */ PyObject *py_talloc_default_repr(PyObject *py_obj); +#define py_talloc_new(type, typeobj) py_talloc_import(typeobj, talloc_zero(NULL, type)) + #endif /* _PY_TALLOC_H_ */ -- cgit