diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-12-20 23:38:30 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-12-20 23:38:30 +0100 |
commit | 13fa639a29a3e79d825a9b75ac507285e39ff364 (patch) | |
tree | 3d6d2f9797e7a8c6fbfc7298c3c3c2dd11413e4e /source4/lib/ldb | |
parent | 0d585a67ed469a0657ae8c40098f5b862e8e4084 (diff) | |
download | samba-13fa639a29a3e79d825a9b75ac507285e39ff364.tar.gz samba-13fa639a29a3e79d825a9b75ac507285e39ff364.tar.bz2 samba-13fa639a29a3e79d825a9b75ac507285e39ff364.zip |
Use plain C implementation for misc Python module rather than SWIG.
Diffstat (limited to 'source4/lib/ldb')
-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 14989cc5ee..159dd1f72c 100644 --- a/source4/lib/ldb/pyldb.h +++ b/source4/lib/ldb/pyldb.h @@ -3,8 +3,6 @@ Swig interface to ldb. - Copyright (C) 2005,2006 Tim Potter <tpot@samba.org> - Copyright (C) 2006 Simo Sorce <idra@samba.org> Copyright (C) 2007-2008 Jelmer Vernooij <jelmer@samba.org> ** NOTE! The following LGPL license applies to the ldb @@ -32,6 +30,7 @@ #include <pytalloc.h> #include <ldb.h> #include <ldb_private.h> +#include <ldb_errors.h> typedef py_talloc_Object PyLdbObject; PyAPI_DATA(PyTypeObject) PyLdb; @@ -70,6 +69,7 @@ PyAPI_DATA(PyTypeObject) PyLdbTree; PyObject *PyLdbTree_FromTree(struct ldb_parse_tree *); #define PyLdbTree_AsTree(pyobj) py_talloc_get_type(pyobj, struct ldb_parse_tree) +void PyErr_SetLdbError(int ret, struct ldb_context *ldb_ctx); #define PyErr_LDB_ERROR_IS_ERR_RAISE(ret,ldb) \ if (ret != LDB_SUCCESS) { \ PyErr_SetLdbError(ret, ldb); \ |