summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-12-29 18:09:09 +0100
committerJelmer Vernooij <jelmer@samba.org>2011-01-01 02:54:05 +0100
commitf5fe9c32ef833d3f1ee4b891f46e94382aa182fe (patch)
tree0d356b43c6bd5ccd4af090c0173b7d0f63ba540b /source4/lib
parent4350e0c3c99fedab99ab1cc680e9d8fe555162e9 (diff)
downloadsamba-f5fe9c32ef833d3f1ee4b891f46e94382aa182fe.tar.gz
samba-f5fe9c32ef833d3f1ee4b891f46e94382aa182fe.tar.bz2
samba-f5fe9c32ef833d3f1ee4b891f46e94382aa182fe.zip
s4-python: Add more prototypes.
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb-samba/pyldb.c2
-rw-r--r--source4/lib/ldb/pyldb.c2
-rw-r--r--source4/lib/messaging/pymessaging.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/source4/lib/ldb-samba/pyldb.c b/source4/lib/ldb-samba/pyldb.c
index 9345145af1..cce653e20a 100644
--- a/source4/lib/ldb-samba/pyldb.c
+++ b/source4/lib/ldb-samba/pyldb.c
@@ -29,6 +29,8 @@
#include "lib/ldb-samba/ldif_handlers.h"
#include "auth/pyauth.h"
+void init_ldb(void);
+
static PyObject *pyldb_module;
static PyObject *py_ldb_error;
staticforward PyTypeObject PySambaLdb;
diff --git a/source4/lib/ldb/pyldb.c b/source4/lib/ldb/pyldb.c
index 5446aafb92..71720d60e0 100644
--- a/source4/lib/ldb/pyldb.c
+++ b/source4/lib/ldb/pyldb.c
@@ -30,6 +30,8 @@
#include "ldb_private.h"
#include "pyldb.h"
+void initldb(void);
+
/* There's no Py_ssize_t in 2.4, apparently */
#if PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION < 5
typedef int Py_ssize_t;
diff --git a/source4/lib/messaging/pymessaging.c b/source4/lib/messaging/pymessaging.c
index 20e1d76164..9854f4f95e 100644
--- a/source4/lib/messaging/pymessaging.c
+++ b/source4/lib/messaging/pymessaging.c
@@ -33,6 +33,8 @@
#include "librpc/rpc/dcerpc.h"
#include "librpc/gen_ndr/server_id.h"
+void initmessaging(void);
+
extern PyTypeObject messaging_Type;
static bool server_id_from_py(PyObject *object, struct server_id *server_id)