Mercurial > hg > nginx
comparison src/http/ngx_http_core_module.c @ 113:d7f606e25b99
nginx-0.0.1-2003-07-04-19:10:33 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 04 Jul 2003 15:10:33 +0000 |
parents | 152567c11325 |
children | ac69ab96328d |
comparison
equal
deleted
inserted
replaced
112:da763a85be66 | 113:d7f606e25b99 |
---|---|
18 void *parent, void *child); | 18 void *parent, void *child); |
19 static void *ngx_http_core_create_loc_conf(ngx_pool_t *pool); | 19 static void *ngx_http_core_create_loc_conf(ngx_pool_t *pool); |
20 static char *ngx_http_core_merge_loc_conf(ngx_pool_t *pool, | 20 static char *ngx_http_core_merge_loc_conf(ngx_pool_t *pool, |
21 void *parent, void *child); | 21 void *parent, void *child); |
22 | 22 |
23 static int ngx_http_core_init(ngx_cycle_t *cycle, ngx_log_t *log); | 23 static int ngx_http_core_init(ngx_cycle_t *cycle); |
24 static char *ngx_server_block(ngx_conf_t *cf, ngx_command_t *cmd, void *dummy); | 24 static char *ngx_server_block(ngx_conf_t *cf, ngx_command_t *cmd, void *dummy); |
25 static int ngx_cmp_locations(const void *first, const void *second); | 25 static int ngx_cmp_locations(const void *first, const void *second); |
26 static char *ngx_location_block(ngx_conf_t *cf, ngx_command_t *cmd, | 26 static char *ngx_location_block(ngx_conf_t *cf, ngx_command_t *cmd, |
27 void *dummy); | 27 void *dummy); |
28 static char *ngx_types_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); | 28 static char *ngx_types_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); |
185 NGX_MODULE, | 185 NGX_MODULE, |
186 &ngx_http_core_module_ctx, /* module context */ | 186 &ngx_http_core_module_ctx, /* module context */ |
187 ngx_http_core_commands, /* module directives */ | 187 ngx_http_core_commands, /* module directives */ |
188 NGX_HTTP_MODULE, /* module type */ | 188 NGX_HTTP_MODULE, /* module type */ |
189 ngx_http_core_init, /* init module */ | 189 ngx_http_core_init, /* init module */ |
190 NULL, /* commit module */ | 190 NULL /* init child */ |
191 NULL /* rollback module */ | |
192 }; | 191 }; |
193 | 192 |
194 | 193 |
195 void ngx_http_handler(ngx_http_request_t *r) | 194 void ngx_http_handler(ngx_http_request_t *r) |
196 { | 195 { |
527 | 526 |
528 return NGX_OK; | 527 return NGX_OK; |
529 } | 528 } |
530 | 529 |
531 | 530 |
532 static int ngx_http_core_init(ngx_cycle_t *cycle, ngx_log_t *log) | 531 static int ngx_http_core_init(ngx_cycle_t *cycle) |
533 { | 532 { |
534 ngx_http_handler_pt *h; | 533 ngx_http_handler_pt *h; |
535 ngx_http_conf_ctx_t *ctx; | 534 ngx_http_conf_ctx_t *ctx; |
536 ngx_http_core_main_conf_t *cmcf; | 535 ngx_http_core_main_conf_t *cmcf; |
537 | 536 |