diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-12-21 07:34:27 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-12-21 07:34:27 +0100 |
commit | 6efb7ff98191c5f62f66be33591f674b682986ac (patch) | |
tree | edd2a761bf370b3e2cdb2ebd3015e4e5814439e8 /source4/lib/ldb/pyldb.h | |
parent | f36ff0bac29a0e26db8ac0994d046611e3704dd0 (diff) | |
download | samba-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.h | 4 |
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; |