From 13fa639a29a3e79d825a9b75ac507285e39ff364 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 20 Dec 2008 23:38:30 +0100 Subject: Use plain C implementation for misc Python module rather than SWIG. --- source4/lib/ldb/pyldb.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/lib/ldb') 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 - Copyright (C) 2006 Simo Sorce Copyright (C) 2007-2008 Jelmer Vernooij ** NOTE! The following LGPL license applies to the ldb @@ -32,6 +30,7 @@ #include #include #include +#include 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); \ -- cgit