summaryrefslogtreecommitdiff
path: root/source3/python/py_winbind.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-03-20 03:29:03 +0000
committerTim Potter <tpot@samba.org>2002-03-20 03:29:03 +0000
commitd07cc9d8a1b34429f3c96abde7449ee0b7487ac3 (patch)
treee0b6da3f20671e26c49581349b984d77b4f42a1e /source3/python/py_winbind.c
parenta1249aca906e9624edada1b4e9c654b568897dce (diff)
downloadsamba-d07cc9d8a1b34429f3c96abde7449ee0b7487ac3.tar.gz
samba-d07cc9d8a1b34429f3c96abde7449ee0b7487ac3.tar.bz2
samba-d07cc9d8a1b34429f3c96abde7449ee0b7487ac3.zip
Initial version.
(This used to be commit d35770d06f7bc396cf32337a4e1104b5fe8a3ca8)
Diffstat (limited to 'source3/python/py_winbind.c')
-rw-r--r--source3/python/py_winbind.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/source3/python/py_winbind.c b/source3/python/py_winbind.c
new file mode 100644
index 0000000000..eed9b235e0
--- /dev/null
+++ b/source3/python/py_winbind.c
@@ -0,0 +1,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);
+}