mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
source4/lib: Fix prototypes for all functions.
This commit is contained in:
@ -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;
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
@ -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))
|
||||
|
@ -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;
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "system/network.h"
|
||||
#include "system/filesys.h"
|
||||
|
||||
_PUBLIC_ const struct socket_ops *socket_unixdom_ops(enum socket_type type);
|
||||
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user