diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-12-19 01:22:07 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-12-19 01:22:07 +0000 |
commit | a57b1aa0f1df4fb5ec5a5b38f0505302ae20f001 (patch) | |
tree | e81c15f5f85a9d28732eb9af20525b2e771a664a /lib/talloc/pytalloc.h | |
parent | 21702bfcdece4e71dcb4ab50e111911a5777f9a5 (diff) | |
download | samba-a57b1aa0f1df4fb5ec5a5b38f0505302ae20f001.tar.gz samba-a57b1aa0f1df4fb5ec5a5b38f0505302ae20f001.tar.xz samba-a57b1aa0f1df4fb5ec5a5b38f0505302ae20f001.zip |
Initial work using manual Python bindings for LDB, rather than SWIG-generated ones.
Diffstat (limited to 'lib/talloc/pytalloc.h')
-rw-r--r-- | lib/talloc/pytalloc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/talloc/pytalloc.h b/lib/talloc/pytalloc.h index aad5840a672..bff6f31d271 100644 --- a/lib/talloc/pytalloc.h +++ b/lib/talloc/pytalloc.h @@ -21,6 +21,7 @@ #define _PY_TALLOC_H_ #include <Python.h> +#include <talloc.h> typedef struct { PyObject_HEAD @@ -36,8 +37,7 @@ void py_talloc_dealloc(PyObject* self); /* FIXME: Call PyErr_SetString(PyExc_TypeError, "expected " __STR(type) ") * when talloc_get_type() returns NULL. */ -#define py_talloc_get_type(py_obj, type) \ - talloc_get_type(py_talloc_get_ptr(py_obj), type) +#define py_talloc_get_type(py_obj, type) (talloc_get_type(py_talloc_get_ptr(py_obj), type)) #define py_talloc_get_ptr(py_obj) ((py_talloc_Object *)py_obj)->ptr #define py_talloc_get_mem_ctx(py_obj) ((py_talloc_Object *)py_obj)->talloc_ctx |