From 949548da293fa30ef200d07c3e4ff108174404b7 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 17 Aug 2017 21:47:19 +0300 Subject: The new module configuration interface. Configuration and building example: ./configure ./configure python ./configure php ./configure go make all or ./configure make nginext ./configure python make python ./configure php make php ./configure go make go Modules configuration options and building examples: ./configure python --module=python2 --config=python2.7-config make python2 ./configure php --module=php7 --config=php7.0-config --lib-path=/usr/local/php7.0 make php7 ./configure go --go=go1.6 --go-path=${HOME}/go1.6 make go1.6 --- src/nxt_router.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/nxt_router.h') diff --git a/src/nxt_router.h b/src/nxt_router.h index 2a8a30e1..6e44f1d8 100644 --- a/src/nxt_router.h +++ b/src/nxt_router.h @@ -66,6 +66,11 @@ typedef struct { } nxt_joint_job_t; + +typedef nxt_int_t (*nxt_app_prepare_msg_t)(nxt_task_t *task, + nxt_app_request_t *r, nxt_app_wmsg_t *wmsg); + + struct nxt_app_s { nxt_thread_mutex_t mutex; /* Protects ports queue. */ nxt_queue_t ports; /* of nxt_port_t.app_link */ @@ -83,7 +88,7 @@ struct nxt_app_s { nxt_queue_link_t link; nxt_str_t conf; - nxt_app_module_t *module; + nxt_app_prepare_msg_t prepare_msg; }; -- cgit