mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
s4-python: Add more prototypes.
This commit is contained in:
parent
4350e0c3c9
commit
f5fe9c32ef
@ -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)
|
||||
{
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user