Mercurial > hg > nginx
diff src/http/ngx_http_core_module.h @ 71:59229033ae93
nginx-0.0.1-2003-04-08-19:40:10 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 08 Apr 2003 15:40:10 +0000 |
parents | e43f406e4525 |
children | 5f6d848dcbef |
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.h +++ b/src/http/ngx_http_core_module.h @@ -57,13 +57,17 @@ typedef struct { void **loc_conf; /* pointer to modules loc_conf, used in translation handler */ + int (*handler) (ngx_http_request_t *r); + ngx_str_t doc_root; /* root */ + int sendfile; /* sendfile */ time_t send_timeout; /* send_timeout */ size_t send_lowat; /* send_lowa */ size_t discarded_buffer_size; /* discarded_buffer_size */ time_t lingering_time; /* lingering_time */ ngx_msec_t lingering_timeout; /* lingering_timeout */ + } ngx_http_core_loc_conf_t; @@ -76,10 +80,20 @@ typedef struct { #endif +#if 0 +#define ngx_http_set_loc_handler(conf_ctx, ngx_http_handler) \ + { \ + ngx_http_conf_ctx_t *cx = conf_ctx; \ + ngx_http_core_loc_conf_t *lcf; \ + lcf = cx->loc_conf[ngx_http_core_module_ctx.index]; \ + lcf->handler = ngx_http_handler; \ + } +#endif + + extern ngx_http_module_t ngx_http_core_module_ctx; extern ngx_module_t ngx_http_core_module; -extern int (*ngx_http_top_header_filter) (ngx_http_request_t *r); extern int ngx_http_max_module;