summaryrefslogtreecommitdiff
path: root/source3/python/py_winbind.c
blob: eed9b235e0114cb7bf9237bfb895ea2646988b15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include "includes.h"
#include "Python.h"
#include "python/py_common.h"

/* 
 * Exceptions raised by this module 
 */

PyObject *winbind_error;	/* A winbind call returned WINBINDD_ERROR */

/*
 * Method dispatch table
 */

static PyMethodDef winbind_methods[] = {
	{ NULL }
};

/*
 * Module initialisation 
 */

void initwinbind(void)
{
	PyObject *module, *dict;

	/* Initialise module */

	module = Py_InitModule("winbind", winbind_methods);
	dict = PyModule_GetDict(module);

	winbind_error = PyErr_NewException("winbind.error", NULL, NULL);
	PyDict_SetItemString(dict, "error", winbind_error);
}