From 6f2c9acd1841ca20a1388b34aef64e9f00459090 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 9 Mar 2017 18:03:27 +0300 Subject: Processes refactoring. The cycle has been renamed to the runtime. --- src/nxt_python_wsgi.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/nxt_python_wsgi.c') diff --git a/src/nxt_python_wsgi.c b/src/nxt_python_wsgi.c index e983431b..1b838041 100644 --- a/src/nxt_python_wsgi.c +++ b/src/nxt_python_wsgi.c @@ -15,7 +15,7 @@ #endif #include -#include +#include #include @@ -45,7 +45,7 @@ static PyObject *nxt_py_input_readline(nxt_py_input_t *self, PyObject *args); static PyObject *nxt_py_input_readlines(nxt_py_input_t *self, PyObject *args); -extern nxt_int_t nxt_python_wsgi_init(nxt_thread_t *thr, nxt_cycle_t *cycle); +extern nxt_int_t nxt_python_wsgi_init(nxt_thread_t *thr, nxt_runtime_t *rt); nxt_application_module_t nxt_python_module = { @@ -130,7 +130,7 @@ static nxt_app_request_t *nxt_app_request; nxt_int_t -nxt_python_wsgi_init(nxt_thread_t *thr, nxt_cycle_t *cycle) +nxt_python_wsgi_init(nxt_thread_t *thr, nxt_runtime_t *rt) { char **argv; u_char *p, *dir; @@ -295,7 +295,8 @@ nxt_python_init(nxt_thread_t *thr) return NXT_ERROR; } - pModule = PyImport_ExecCodeModuleEx((char *) "_wsgi_nginext", co, (char *) script); + pModule = PyImport_ExecCodeModuleEx((char *) "_wsgi_nginext", co, + (char *) script); Py_XDECREF(co); #endif -- cgit