mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-05 05:01:36 +00:00
exported uwsgi_legion_i_am_the_lord() api function
This commit is contained in:
@@ -440,6 +440,22 @@ PyObject *py_uwsgi_signal_registered(PyObject * self, PyObject * args) {
|
||||
return Py_None;
|
||||
}
|
||||
|
||||
PyObject *py_uwsgi_i_am_the_lord(PyObject * self, PyObject * args) {
|
||||
char *legion_name = NULL;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "s:i_am_the_lord", &legion_name)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (uwsgi_legion_i_am_the_lord(legion_name)) {
|
||||
Py_INCREF(Py_True);
|
||||
return Py_True;
|
||||
}
|
||||
|
||||
Py_INCREF(Py_False);
|
||||
return Py_False;
|
||||
}
|
||||
|
||||
PyObject *py_uwsgi_register_signal(PyObject * self, PyObject * args) {
|
||||
|
||||
uint8_t uwsgi_signal;
|
||||
@@ -3213,6 +3229,9 @@ static PyMethodDef uwsgi_advanced_methods[] = {
|
||||
{"cluster", py_uwsgi_cluster, METH_VARARGS, ""},
|
||||
{"cluster_best_node", py_uwsgi_cluster_best_node, METH_VARARGS, ""},
|
||||
#endif
|
||||
#ifdef UWSGI_SSL
|
||||
{"i_am_the_lord", py_uwsgi_i_am_the_lord, METH_VARARGS, ""},
|
||||
#endif
|
||||
#ifdef UWSGI_ASYNC
|
||||
{"async_sleep", py_uwsgi_async_sleep, METH_VARARGS, ""},
|
||||
{"async_connect", py_uwsgi_async_connect, METH_VARARGS, ""},
|
||||
|
||||
Reference in New Issue
Block a user