1
0
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:
Jelmer Vernooij 2010-12-29 18:09:09 +01:00
parent 4350e0c3c9
commit f5fe9c32ef
5 changed files with 10 additions and 0 deletions

View 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)
{

View 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

View 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;

View 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;

View 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)