Mercurial > hg > nginx
comparison src/http/ngx_http_config.h @ 356:2e3cbc1bbe3c
nginx-0.0.7-2004-06-16-19:32:11 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 16 Jun 2004 15:32:11 +0000 |
parents | 11ff50a35d6d |
children | 5659d773cfa8 |
comparison
equal
deleted
inserted
replaced
355:0fb6c53fb135 | 356:2e3cbc1bbe3c |
---|---|
12 void **loc_conf; | 12 void **loc_conf; |
13 } ngx_http_conf_ctx_t; | 13 } ngx_http_conf_ctx_t; |
14 | 14 |
15 | 15 |
16 typedef struct { | 16 typedef struct { |
17 int (*output_header_filter) (ngx_http_request_t *r); | 17 ngx_int_t (*pre_conf)(ngx_conf_t *cf); |
18 int (*output_body_filter) (ngx_http_request_t *r, ngx_chain_t *ch); | |
19 } ngx_http_conf_filter_t; | |
20 | 18 |
19 void *(*create_main_conf)(ngx_conf_t *cf); | |
20 char *(*init_main_conf)(ngx_conf_t *cf, void *conf); | |
21 | 21 |
22 typedef struct { | 22 void *(*create_srv_conf)(ngx_conf_t *cf); |
23 int (*pre_conf)(ngx_conf_t *cf); | 23 char *(*merge_srv_conf)(ngx_conf_t *cf, void *prev, void *conf); |
24 | 24 |
25 void *(*create_main_conf)(ngx_conf_t *cf); | 25 void *(*create_loc_conf)(ngx_conf_t *cf); |
26 char *(*init_main_conf)(ngx_conf_t *cf, void *conf); | 26 char *(*merge_loc_conf)(ngx_conf_t *cf, void *prev, void *conf); |
27 | |
28 void *(*create_srv_conf)(ngx_conf_t *cf); | |
29 char *(*merge_srv_conf)(ngx_conf_t *cf, void *prev, void *conf); | |
30 | |
31 void *(*create_loc_conf)(ngx_conf_t *cf); | |
32 char *(*merge_loc_conf)(ngx_conf_t *cf, void *prev, void *conf); | |
33 } ngx_http_module_t; | 27 } ngx_http_module_t; |
34 | 28 |
35 | 29 |
36 #define NGX_HTTP_MODULE 0x50545448 /* "HTTP" */ | 30 #define NGX_HTTP_MODULE 0x50545448 /* "HTTP" */ |
37 | 31 |
51 | 45 |
52 #define ngx_http_conf_module_main_conf(cf, module) \ | 46 #define ngx_http_conf_module_main_conf(cf, module) \ |
53 ((ngx_http_conf_ctx_t *) cf->ctx)->main_conf[module.ctx_index] | 47 ((ngx_http_conf_ctx_t *) cf->ctx)->main_conf[module.ctx_index] |
54 | 48 |
55 | 49 |
56 extern int (*ngx_http_top_header_filter) (ngx_http_request_t *r); | |
57 | |
58 | 50 |
59 #endif /* _NGX_HTTP_CONFIG_H_INCLUDED_ */ | 51 #endif /* _NGX_HTTP_CONFIG_H_INCLUDED_ */ |