summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorArnaud Faucher <arnaud.faucher@gmail.com>2010-11-22 00:07:21 +0100
committerJelmer Vernooij <jelmer@samba.org>2010-11-22 00:52:56 +0100
commit2ac5cedb719d220db412d0bdc69e34bad9ab26f1 (patch)
tree0544a791f72b2416b9bc74d62671d1547b1b2458 /source4/lib/ldb
parent6534358a1ae0e3540f84ebc531519fe5c5711ad3 (diff)
downloadsamba-2ac5cedb719d220db412d0bdc69e34bad9ab26f1.tar.gz
samba-2ac5cedb719d220db412d0bdc69e34bad9ab26f1.tar.bz2
samba-2ac5cedb719d220db412d0bdc69e34bad9ab26f1.zip
Avoid the use of PyAPI_DATA, which is for internal Python API's.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Nov 22 00:52:56 CET 2010 on sn-devel-104
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/pyldb.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/lib/ldb/pyldb.c b/source4/lib/ldb/pyldb.c
index d4b63008f8..3bee9abcc9 100644
--- a/source4/lib/ldb/pyldb.c
+++ b/source4/lib/ldb/pyldb.c
@@ -54,12 +54,12 @@ static void PyErr_SetLdbError(PyObject *error, int ret, struct ldb_context *ldb_
static PyObject *PyExc_LdbError;
-PyAPI_DATA(PyTypeObject) PyLdbMessage;
-PyAPI_DATA(PyTypeObject) PyLdbModule;
-PyAPI_DATA(PyTypeObject) PyLdbDn;
-PyAPI_DATA(PyTypeObject) PyLdb;
-PyAPI_DATA(PyTypeObject) PyLdbMessageElement;
-PyAPI_DATA(PyTypeObject) PyLdbTree;
+extern PyTypeObject PyLdbMessage;
+extern PyTypeObject PyLdbModule;
+extern PyTypeObject PyLdbDn;
+extern PyTypeObject PyLdb;
+extern PyTypeObject PyLdbMessageElement;
+extern PyTypeObject PyLdbTree;
static PyObject *PyLdb_FromLdbContext(struct ldb_context *ldb_ctx);