nxt_python.h (1918:b15674b9a39a) nxt_python.h (1980:43553aa72111)
1
2/*
3 * Copyright (C) NGINX, Inc.
4 */
5
6#ifndef _NXT_PYTHON_H_INCLUDED_
7#define _NXT_PYTHON_H_INCLUDED_
8

--- 50 unchanged lines hidden (view full) ---

59} nxt_python_string_t;
60
61
62typedef struct {
63 int (*ctx_data_alloc)(void **pdata, int main);
64 void (*ctx_data_free)(void *data);
65 int (*startup)(void *data);
66 int (*run)(nxt_unit_ctx_t *ctx);
1
2/*
3 * Copyright (C) NGINX, Inc.
4 */
5
6#ifndef _NXT_PYTHON_H_INCLUDED_
7#define _NXT_PYTHON_H_INCLUDED_
8

--- 50 unchanged lines hidden (view full) ---

59} nxt_python_string_t;
60
61
62typedef struct {
63 int (*ctx_data_alloc)(void **pdata, int main);
64 void (*ctx_data_free)(void *data);
65 int (*startup)(void *data);
66 int (*run)(nxt_unit_ctx_t *ctx);
67 int (*ready)(nxt_unit_ctx_t *ctx);
68 void (*done)(void);
69} nxt_python_proto_t;
70
71
72int nxt_python_init_strings(nxt_python_string_t *pstr);
73void nxt_python_done_strings(nxt_python_string_t *pstr);
74
75void nxt_python_print_exception(void);
76
77int nxt_python_wsgi_init(nxt_unit_init_t *init, nxt_python_proto_t *proto);
78
79int nxt_python_asgi_check(PyObject *obj);
80int nxt_python_asgi_init(nxt_unit_init_t *init, nxt_python_proto_t *proto);
81
82
83#endif /* _NXT_PYTHON_H_INCLUDED_ */
67 void (*done)(void);
68} nxt_python_proto_t;
69
70
71int nxt_python_init_strings(nxt_python_string_t *pstr);
72void nxt_python_done_strings(nxt_python_string_t *pstr);
73
74void nxt_python_print_exception(void);
75
76int nxt_python_wsgi_init(nxt_unit_init_t *init, nxt_python_proto_t *proto);
77
78int nxt_python_asgi_check(PyObject *obj);
79int nxt_python_asgi_init(nxt_unit_init_t *init, nxt_python_proto_t *proto);
80
81
82#endif /* _NXT_PYTHON_H_INCLUDED_ */