summaryrefslogtreecommitdiff
path: root/lib/talloc
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-12-19 01:22:07 +0000
committerJelmer Vernooij <jelmer@samba.org>2008-12-19 01:22:07 +0000
commita57b1aa0f1df4fb5ec5a5b38f0505302ae20f001 (patch)
treee81c15f5f85a9d28732eb9af20525b2e771a664a /lib/talloc
parent21702bfcdece4e71dcb4ab50e111911a5777f9a5 (diff)
downloadsamba-a57b1aa0f1df4fb5ec5a5b38f0505302ae20f001.tar.gz
samba-a57b1aa0f1df4fb5ec5a5b38f0505302ae20f001.tar.bz2
samba-a57b1aa0f1df4fb5ec5a5b38f0505302ae20f001.zip
Initial work using manual Python bindings for LDB, rather than SWIG-generated ones.
Diffstat (limited to 'lib/talloc')
-rw-r--r--lib/talloc/pytalloc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/talloc/pytalloc.h b/lib/talloc/pytalloc.h
index aad5840a67..bff6f31d27 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