mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
source4/param: Fix prototypes for all functions.
This commit is contained in:
parent
557f830c4f
commit
42eb3ab54d
@ -24,6 +24,8 @@
|
||||
#include "lib/talloc/pytalloc.h"
|
||||
#include "dynconfig/dynconfig.h"
|
||||
|
||||
void initparam(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;
|
||||
@ -36,7 +38,7 @@ typedef inquiry lenfunc;
|
||||
extern PyTypeObject PyLoadparmContext;
|
||||
extern PyTypeObject PyLoadparmService;
|
||||
|
||||
PyObject *PyLoadparmService_FromService(struct loadparm_service *service)
|
||||
static PyObject *PyLoadparmService_FromService(struct loadparm_service *service)
|
||||
{
|
||||
return py_talloc_reference(&PyLoadparmService, service);
|
||||
}
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include <Python.h>
|
||||
#include "includes.h"
|
||||
#include "param/param.h"
|
||||
#include "param/pyparam.h"
|
||||
#include "param/loadparm.h"
|
||||
#include "lib/talloc/pytalloc.h"
|
||||
|
||||
|
@ -23,6 +23,8 @@
|
||||
#include "param/share.h"
|
||||
#include "param/param.h"
|
||||
|
||||
NTSTATUS share_classic_init(void);
|
||||
|
||||
static NTSTATUS sclassic_init(TALLOC_CTX *mem_ctx,
|
||||
const struct share_ops *ops,
|
||||
struct tevent_context *event_ctx,
|
||||
|
@ -27,6 +27,8 @@
|
||||
#include "param/share.h"
|
||||
#include "param/param.h"
|
||||
|
||||
NTSTATUS share_ldb_init(void);
|
||||
|
||||
static NTSTATUS sldb_init(TALLOC_CTX *mem_ctx, const struct share_ops *ops,
|
||||
struct tevent_context *ev_ctx,
|
||||
struct loadparm_context *lp_ctx,
|
||||
|
Loading…
Reference in New Issue
Block a user