summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/pyldb.h
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-12-21 07:34:27 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-12-21 07:34:27 +0100
commit6efb7ff98191c5f62f66be33591f674b682986ac (patch)
treeedd2a761bf370b3e2cdb2ebd3015e4e5814439e8 /source4/lib/ldb/pyldb.h
parentf36ff0bac29a0e26db8ac0994d046611e3704dd0 (diff)
downloadsamba-6efb7ff98191c5f62f66be33591f674b682986ac.tar.gz
samba-6efb7ff98191c5f62f66be33591f674b682986ac.tar.bz2
samba-6efb7ff98191c5f62f66be33591f674b682986ac.zip
Fix various Python-related bugs.
Diffstat (limited to 'source4/lib/ldb/pyldb.h')
-rw-r--r--source4/lib/ldb/pyldb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/ldb/pyldb.h b/source4/lib/ldb/pyldb.h
index 4ffc21325a..b55bb68401 100644
--- a/source4/lib/ldb/pyldb.h
+++ b/source4/lib/ldb/pyldb.h
@@ -61,8 +61,8 @@ PyObject *PyLdbModule_FromModule(struct ldb_module *mod);
typedef py_talloc_Object PyLdbMessageElementObject;
PyAPI_DATA(PyTypeObject) PyLdbMessageElement;
struct ldb_message_element *PyObject_AsMessageElement(TALLOC_CTX *mem_ctx, PyObject *obj, int flags, const char *name);
-PyObject *PyLdbMessageElement_FromMessageElement(struct ldb_message_element *);
-#define PyLdbMessageElement_AsMessageElement(pyobj) py_talloc_get_type(pyobj, struct ldb_message_element)
+PyObject *PyLdbMessageElement_FromMessageElement(struct ldb_message_element *, TALLOC_CTX *mem_ctx);
+#define PyLdbMessageElement_AsMessageElement(pyobj) ((struct ldb_message_element *)py_talloc_get_ptr(pyobj))
#define PyLdbMessageElement_Check(ob) PyObject_TypeCheck(ob, &PyLdbMessageElement)
typedef py_talloc_Object PyLdbTreeObject;