diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2002-12-26 16:26:23 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2002-12-26 16:26:23 +0000 |
| commit | 207ed5a589055899a5841d1a9f3074fc4ff407c5 (patch) | |
| tree | 69cb0a8bafe1997089f3faba616fd6f3f3abe50a /src/http/ngx_http.h | |
| parent | 960ffa42cb161b3769cde9bbf2212092e751dfab (diff) | |
| download | nginx-207ed5a589055899a5841d1a9f3074fc4ff407c5.tar.gz nginx-207ed5a589055899a5841d1a9f3074fc4ff407c5.tar.bz2 | |
nginx-0.0.1-2002-12-26-19:26:23 import
Diffstat (limited to '')
| -rw-r--r-- | src/http/ngx_http.h | 32 |
1 files changed, 8 insertions, 24 deletions
diff --git a/src/http/ngx_http.h b/src/http/ngx_http.h index 61ac548a8..8e94ab9a9 100644 --- a/src/http/ngx_http.h +++ b/src/http/ngx_http.h @@ -188,29 +188,18 @@ typedef int (*ngx_http_output_body_filter_p) typedef struct { - int index; + int index; - void *(*create_srv_conf)(ngx_pool_t *p); - void *(*create_loc_conf)(ngx_pool_t *p); + void *(*create_srv_conf)(ngx_pool_t *p); + void *(*create_loc_conf)(ngx_pool_t *p); - int (*translate_handler)(ngx_http_request_t *r); + int (*translate_handler)(ngx_http_request_t *r); - int (*output_header_filter) (ngx_http_request_t *r); - int (*next_output_header_filter) (ngx_http_request_t *r); + int (*output_header_filter) (ngx_http_request_t *r); + int (*next_output_header_filter) (ngx_http_request_t *r); - ngx_http_output_body_filter_p output_body_filter; - ngx_http_output_body_filter_p next_output_body_filter; - -#if 0 - int (*output_body_filter)(); - int (*next_output_body_filter) - (ngx_http_request_t *r, ngx_chain_t *ch); -#endif - -#if 0 - int (*next_output_body_filter)(int (**next_filter) - (ngx_http_request_t *r, ngx_chain_t *ch)); -#endif + int (*output_body_filter) (ngx_http_request_t *r, ngx_chain_t *ch); + int (*next_output_body_filter) (ngx_http_request_t *r, ngx_chain_t *ch); } ngx_http_module_t; @@ -219,11 +208,6 @@ typedef struct { #define NGX_HTTP_MODULE_TYPE 0x50545448 /* "HTTP" */ -/* STUB */ -#define ngx_get_module_loc_conf(r, module) r->loc_conf[module.index] -#define ngx_get_module_ctx(r, module) r->ctx[module.index] -/**/ - #define ngx_http_get_module_srv_conf(r, module) r->srv_conf[module.index] #define ngx_http_get_module_loc_conf(r, module) r->loc_conf[module.index] #define ngx_http_get_module_ctx(r, module) r->ctx[module.index] |
