1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-25 19:17:10 +03:00
samba-mirror/source3/python/py_winbind.c
Tim Potter d07cc9d8a1 Initial version.
(This used to be commit d35770d06f7bc396cf32337a4e1104b5fe8a3ca8)
2002-03-20 03:29:03 +00:00

35 lines
599 B
C

#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);
}