Lines Matching refs:ctx_data

18     nxt_py_asgi_ctx_data_t  *ctx_data;  member
31 nxt_py_asgi_ctx_data_t *ctx_data, nxt_python_target_t *target);
73 nxt_py_asgi_lifespan_startup(nxt_py_asgi_ctx_data_t *ctx_data) in nxt_py_asgi_lifespan_startup() argument
94 lifespan = nxt_py_asgi_lifespan_target_startup(ctx_data, target); in nxt_py_asgi_lifespan_startup()
102 ctx_data->target_lifespans = target_lifespans; in nxt_py_asgi_lifespan_startup()
109 nxt_py_asgi_lifespan_target_startup(nxt_py_asgi_ctx_data_t *ctx_data, in nxt_py_asgi_lifespan_target_startup() argument
148 lifespan->startup_future = PyObject_CallObject(ctx_data->loop_create_future, in nxt_py_asgi_lifespan_target_startup()
157 lifespan->ctx_data = ctx_data; in nxt_py_asgi_lifespan_target_startup()
223 py_task = PyObject_CallFunctionObjArgs(ctx_data->loop_create_task, res, in nxt_py_asgi_lifespan_target_startup()
244 res = PyObject_CallFunctionObjArgs(ctx_data->loop_run_until_complete, in nxt_py_asgi_lifespan_target_startup()
284 nxt_py_asgi_ctx_data_t *ctx_data; in nxt_py_asgi_lifespan_shutdown() local
286 ctx_data = ctx->data; in nxt_py_asgi_lifespan_shutdown()
289 lifespan = (nxt_py_asgi_lifespan_t *)ctx_data->target_lifespans[i]; in nxt_py_asgi_lifespan_shutdown()
297 nxt_unit_free(NULL, ctx_data->target_lifespans); in nxt_py_asgi_lifespan_shutdown()
307 nxt_py_asgi_ctx_data_t *ctx_data; in nxt_py_asgi_lifespan_target_shutdown() local
309 ctx_data = lifespan->ctx_data; in nxt_py_asgi_lifespan_target_shutdown()
337 lifespan->shutdown_future = PyObject_CallObject(ctx_data->loop_create_future, in nxt_py_asgi_lifespan_target_shutdown()
345 res = PyObject_CallFunctionObjArgs(ctx_data->loop_run_until_complete, in nxt_py_asgi_lifespan_target_shutdown()
365 nxt_py_asgi_ctx_data_t *ctx_data; in nxt_py_asgi_lifespan_receive() local
368 ctx_data = lifespan->ctx_data; in nxt_py_asgi_lifespan_receive()
372 future = PyObject_CallObject(ctx_data->loop_create_future, NULL); in nxt_py_asgi_lifespan_receive()
386 return nxt_py_asgi_set_result_soon(NULL, ctx_data, future, msg); in nxt_py_asgi_lifespan_receive()
394 return nxt_py_asgi_set_result_soon(NULL, ctx_data, future, msg); in nxt_py_asgi_lifespan_receive()