From 61606835448554a7ee9a4431d732e1f2a9318376 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 31 Aug 2017 00:42:12 +0300 Subject: Introduced module compatibility vector. --- src/nxt_python_wsgi.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/nxt_python_wsgi.c') diff --git a/src/nxt_python_wsgi.c b/src/nxt_python_wsgi.c index f5c3ebae..fd718a95 100644 --- a/src/nxt_python_wsgi.c +++ b/src/nxt_python_wsgi.c @@ -91,7 +91,14 @@ nxt_inline nxt_int_t nxt_python_write_py_str(nxt_python_run_ctx_t *ctx, PyObject *str, nxt_bool_t flush, nxt_bool_t last); +static uint32_t compat[] = { + NXT_VERNUM, +}; + + NXT_EXPORT nxt_application_module_t nxt_app_module = { + sizeof(compat), + compat, nxt_string("python"), nxt_string(PY_VERSION), nxt_python_init, -- cgit