summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_python_wsgi.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-08-31 00:42:12 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-08-31 00:42:12 +0300
commit61606835448554a7ee9a4431d732e1f2a9318376 (patch)
tree171841cea56c4fdbd0fd1bb2473e18d3a96cda3a /src/nxt_python_wsgi.c
parent3f10b05de995099bf7551b17f5d8d38efe8b4fc5 (diff)
downloadunit-61606835448554a7ee9a4431d732e1f2a9318376.tar.gz
unit-61606835448554a7ee9a4431d732e1f2a9318376.tar.bz2
Introduced module compatibility vector.
Diffstat (limited to '')
-rw-r--r--src/nxt_python_wsgi.c7
1 files changed, 7 insertions, 0 deletions
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,