summaryrefslogtreecommitdiffstats
path: root/python/environs/py_server.c
diff options
context:
space:
mode:
Diffstat (limited to 'python/environs/py_server.c')
-rw-r--r--python/environs/py_server.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/python/environs/py_server.c b/python/environs/py_server.c
index fbcce1c6..6f625829 100644
--- a/python/environs/py_server.c
+++ b/python/environs/py_server.c
@@ -99,6 +99,22 @@ PyObject *server_add_provider(PyObject *self, PyObject *args) {
return (Py_None);
}
+PyObject *server_destroy(PyObject *self, PyObject *args) {
+ PyObject *server_obj;
+
+ if (CheckArgs(args, "O:server_destroy")) {
+ if(!PyArg_ParseTuple(args, (char *) "O:server_destroy",
+ &server_obj))
+ return NULL;
+ }
+ else return NULL;
+
+ lasso_server_destroy(LassoServer_get(server_obj));
+
+ Py_INCREF(Py_None);
+ return (Py_None);
+}
+
PyObject *server_dump(PyObject *self, PyObject *args) {
PyObject *server_obj;
gchar *ret;