source4/lib: Fix prototypes for all functions.
authorJelmer Vernooij <jelmer@samba.org>
Fri, 18 Mar 2011 23:45:36 +0000 (00:45 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Sat, 19 Mar 2011 02:20:05 +0000 (03:20 +0100)
source4/lib/com/classes/simple.c
source4/lib/com/pycom.c
source4/lib/policy/pypolicy.c
source4/lib/registry/pyregistry.c
source4/lib/socket/socket_ip.c
source4/lib/socket/socket_unix.c

index 295f113207d55d6bfb267e3727f37aa57223f482..367ce9d6319bc991fb92028bb3aa35e9c61a9829 100644 (file)
@@ -22,6 +22,8 @@
 #include "lib/com/com.h"
 #include "librpc/gen_ndr/com_dcom.h"
 
+NTSTATUS com_simple_init(void);
+
 static struct IClassFactory_vtable simple_classobject_vtable;
 static struct IStream_vtable simple_IStream_vtable;
 
index 3323ca645e680948ff84b988cbff02c972909412..b4458121812b70202ffb7f79bd7c6130513aef97 100644 (file)
@@ -23,6 +23,8 @@
 #include "librpc/ndr/libndr.h"
 #include "libcli/util/pyerrors.h"
 
+void initcom(void);
+
 static struct com_context *py_com_ctx = NULL; /* FIXME: evil global */
 
 static PyObject *py_get_class_object(PyObject *self, PyObject *args)
index 7df5081d66b9183c9aeb291b46250a9630dfe268..3f302e67640d122ecb8ca970fce239cdd093852f 100644 (file)
@@ -22,6 +22,8 @@
 #include "policy.h"
 #include "libcli/util/pyerrors.h"
 
+void initpolicy(void);
+
 static PyObject *py_get_gpo_flags(PyObject *self, PyObject *args)
 {
        int flags;
index b93258a8562a6b639b470aa90f509d49d88db4d0..5719bbd11516b53882f90b9dadcc267e82538a1f 100644 (file)
@@ -31,6 +31,8 @@ extern PyTypeObject PyRegistryKey;
 extern PyTypeObject PyRegistry;
 extern PyTypeObject PyHiveKey;
 
+void initregistry(void);
+
 /*#define PyRegistryKey_AsRegistryKey(obj) py_talloc_get_type(obj, struct registry_key)*/
 #define PyRegistry_AsRegistryContext(obj) ((struct registry_context *)py_talloc_get_ptr(obj))
 #define PyHiveKey_AsHiveKey(obj) ((struct hive_key*)py_talloc_get_ptr(obj))
index 9a02f0184ca1519f9dc6aaa6fabf6f5f3872c9bf..4e66653252031fa44b3ce92e2a008c41b67a153a 100644 (file)
@@ -27,6 +27,9 @@
 #include "system/network.h"
 #include "lib/util/util_net.h"
 
+_PUBLIC_ const struct socket_ops *socket_ipv4_ops(enum socket_type type);
+_PUBLIC_ const struct socket_ops *socket_ipv6_ops(enum socket_type type);
+
 static NTSTATUS ipv4_init(struct socket_context *sock)
 {
        int type;
index af7d2bb79ff66da79d18d96f3b0ebccfae05c5be..f1fa0a3a30c42d6c232bf5a206c8541cb08e405d 100644 (file)
@@ -25,6 +25,7 @@
 #include "system/network.h"
 #include "system/filesys.h"
 
+_PUBLIC_ const struct socket_ops *socket_unixdom_ops(enum socket_type type);
 
 
 /*