Lines Matching refs:ctx_data
20 nxt_py_asgi_ctx_data_t *ctx_data; member
34 nxt_py_asgi_ctx_data_t *ctx_data, nxt_python_target_t *target);
98 nxt_py_asgi_lifespan_startup(nxt_py_asgi_ctx_data_t *ctx_data) in nxt_py_asgi_lifespan_startup() argument
119 lifespan = nxt_py_asgi_lifespan_target_startup(ctx_data, target); in nxt_py_asgi_lifespan_startup()
127 ctx_data->target_lifespans = target_lifespans; in nxt_py_asgi_lifespan_startup()
134 nxt_py_asgi_lifespan_target_startup(nxt_py_asgi_ctx_data_t *ctx_data, in nxt_py_asgi_lifespan_target_startup() argument
173 lifespan->startup_future = PyObject_CallObject(ctx_data->loop_create_future, in nxt_py_asgi_lifespan_target_startup()
182 lifespan->ctx_data = ctx_data; in nxt_py_asgi_lifespan_target_startup()
265 py_task = PyObject_CallFunctionObjArgs(ctx_data->loop_create_task, res, in nxt_py_asgi_lifespan_target_startup()
286 res = PyObject_CallFunctionObjArgs(ctx_data->loop_run_until_complete, in nxt_py_asgi_lifespan_target_startup()
326 nxt_py_asgi_ctx_data_t *ctx_data; in nxt_py_asgi_lifespan_shutdown() local
328 ctx_data = ctx->data; in nxt_py_asgi_lifespan_shutdown()
331 lifespan = (nxt_py_asgi_lifespan_t *)ctx_data->target_lifespans[i]; in nxt_py_asgi_lifespan_shutdown()
339 nxt_unit_free(NULL, ctx_data->target_lifespans); in nxt_py_asgi_lifespan_shutdown()
349 nxt_py_asgi_ctx_data_t *ctx_data; in nxt_py_asgi_lifespan_target_shutdown() local
351 ctx_data = lifespan->ctx_data; in nxt_py_asgi_lifespan_target_shutdown()
379 lifespan->shutdown_future = PyObject_CallObject(ctx_data->loop_create_future, in nxt_py_asgi_lifespan_target_shutdown()
387 res = PyObject_CallFunctionObjArgs(ctx_data->loop_run_until_complete, in nxt_py_asgi_lifespan_target_shutdown()
407 nxt_py_asgi_ctx_data_t *ctx_data; in nxt_py_asgi_lifespan_receive() local
410 ctx_data = lifespan->ctx_data; in nxt_py_asgi_lifespan_receive()
414 future = PyObject_CallObject(ctx_data->loop_create_future, NULL); in nxt_py_asgi_lifespan_receive()
428 return nxt_py_asgi_set_result_soon(NULL, ctx_data, future, msg); in nxt_py_asgi_lifespan_receive()
436 return nxt_py_asgi_set_result_soon(NULL, ctx_data, future, msg); in nxt_py_asgi_lifespan_receive()