diff options
author | Igor Sysoev <igor@sysoev.ru> | 2002-12-26 07:24:21 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2002-12-26 07:24:21 +0000 |
commit | 960ffa42cb161b3769cde9bbf2212092e751dfab (patch) | |
tree | 8839d7c465a5971c36faa91e27b7df38c1376912 /src/http/ngx_http.h | |
parent | 3a17f2483690412134e548a1a961e1424f958c01 (diff) | |
download | nginx-960ffa42cb161b3769cde9bbf2212092e751dfab.tar.gz nginx-960ffa42cb161b3769cde9bbf2212092e751dfab.zip |
nginx-0.0.1-2002-12-26-10:24:21 import
Diffstat (limited to 'src/http/ngx_http.h')
-rw-r--r-- | src/http/ngx_http.h | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/src/http/ngx_http.h b/src/http/ngx_http.h index c3e0620d2..61ac548a8 100644 --- a/src/http/ngx_http.h +++ b/src/http/ngx_http.h @@ -180,23 +180,32 @@ typedef struct { } ngx_http_log_ctx_t; +typedef int (*ngx_http_output_header_filter_p)(ngx_http_request_t *r); + +typedef int (*ngx_http_output_body_filter_p) + (ngx_http_request_t *r, ngx_chain_t *chain); + + + typedef struct { int index; void *(*create_srv_conf)(ngx_pool_t *p); void *(*create_loc_conf)(ngx_pool_t *p); - ngx_command_t *commands; - - int (*init_module)(ngx_pool_t *p); 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); + 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) @@ -205,10 +214,19 @@ typedef struct { } ngx_http_module_t; -#define NGX_HTTP_MODULE 0 +#define NGX_HTTP_MODULE 0x80000000 + +#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] #define ngx_http_create_ctx(r, cx, module, size) \ do { \ |