s4-python: Add more prototypes.
authorJelmer Vernooij <jelmer@samba.org>
Wed, 29 Dec 2010 17:09:09 +0000 (18:09 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Sat, 1 Jan 2011 01:54:05 +0000 (02:54 +0100)
lib/talloc/pytalloc.c
libcli/nbt/pynbt.c
source4/lib/ldb-samba/pyldb.c
source4/lib/ldb/pyldb.c
source4/lib/messaging/pymessaging.c

index 457358ed8f3a6f4f4163a8cccaf4181e6569b838..a8c46c96f8caa5d4138c1070a8547dfdc1cdb786 100644 (file)
@@ -21,6 +21,8 @@
 #include <talloc.h>
 #include <pytalloc.h>
 
+void inittalloc(void);
+
 /* print a talloc tree report for a talloc python object */
 static PyObject *py_talloc_report_full(PyObject *self, PyObject *args)
 {
index 452ae3a1a2b876cdc2d63c968ed2b66aee89baf7..9251ecfc428cb09462d8922fb70be45c0e89bf9b 100644 (file)
@@ -24,6 +24,8 @@
 #include "../libcli/nbt/libnbt.h"
 #include "lib/events/events.h"
 
+void initnetbios(void);
+
 #ifndef Py_RETURN_NONE
 #define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
 #endif
index 9345145af1a6c76fdaa13cd89e39025f3110272b..cce653e20ac72ab36b5c445748ee5399b472de11 100644 (file)
@@ -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;
index 5446aafb92a1fd486c3f6f22503d65662a4d93c7..71720d60e0cf7279788d0ad8cca45f45ae2de9e5 100644 (file)
@@ -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;
index 20e1d761645a2eb5d58df4cccf0ad58f39d14adc..9854f4f95ef830b06754586403be1b9ad88cbc7d 100644 (file)
@@ -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)