comparison src/http/ngx_http_core_module.c @ 395:f8f0f1834266

nginx-0.0.7-2004-07-16-21:11:43 import
author Igor Sysoev <igor@sysoev.ru>
date Fri, 16 Jul 2004 17:11:43 +0000
parents 5659d773cfa8
children 6f3b20c1ac50
comparison
equal deleted inserted replaced
394:e7a68e14ccd3 395:f8f0f1834266
16 void *parent, void *child); 16 void *parent, void *child);
17 static void *ngx_http_core_create_loc_conf(ngx_conf_t *cf); 17 static void *ngx_http_core_create_loc_conf(ngx_conf_t *cf);
18 static char *ngx_http_core_merge_loc_conf(ngx_conf_t *cf, 18 static char *ngx_http_core_merge_loc_conf(ngx_conf_t *cf,
19 void *parent, void *child); 19 void *parent, void *child);
20 20
21 static ngx_int_t ngx_http_core_init_process(ngx_cycle_t *cycle);
22 static char *ngx_server_block(ngx_conf_t *cf, ngx_command_t *cmd, void *dummy); 21 static char *ngx_server_block(ngx_conf_t *cf, ngx_command_t *cmd, void *dummy);
23 static int ngx_cmp_locations(const void *first, const void *second); 22 static int ngx_cmp_locations(const void *first, const void *second);
24 static char *ngx_location_block(ngx_conf_t *cf, ngx_command_t *cmd, 23 static char *ngx_location_block(ngx_conf_t *cf, ngx_command_t *cmd,
25 void *dummy); 24 void *dummy);
26 static char *ngx_types_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); 25 static char *ngx_types_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
302 NGX_MODULE, 301 NGX_MODULE,
303 &ngx_http_core_module_ctx, /* module context */ 302 &ngx_http_core_module_ctx, /* module context */
304 ngx_http_core_commands, /* module directives */ 303 ngx_http_core_commands, /* module directives */
305 NGX_HTTP_MODULE, /* module type */ 304 NGX_HTTP_MODULE, /* module type */
306 NULL, /* init module */ 305 NULL, /* init module */
307 ngx_http_core_init_process /* init process */ 306 NULL /* init process */
308 }; 307 };
309 308
310 309
311 void ngx_http_handler(ngx_http_request_t *r) 310 void ngx_http_handler(ngx_http_request_t *r)
312 { 311 {
820 } 819 }
821 820
822 #endif 821 #endif
823 822
824 823
824 #if 0
825
825 static ngx_int_t ngx_http_core_init_process(ngx_cycle_t *cycle) 826 static ngx_int_t ngx_http_core_init_process(ngx_cycle_t *cycle)
826 { 827 {
827 ngx_uint_t i; 828 ngx_uint_t i;
828 ngx_http_core_srv_conf_t **cscfp; 829 ngx_http_core_srv_conf_t **cscfp;
829 ngx_http_core_main_conf_t *cmcf; 830 ngx_http_core_main_conf_t *cmcf;
850 } 851 }
851 } 852 }
852 853
853 return NGX_OK; 854 return NGX_OK;
854 } 855 }
856
857 #endif
855 858
856 859
857 static char *ngx_server_block(ngx_conf_t *cf, ngx_command_t *cmd, void *dummy) 860 static char *ngx_server_block(ngx_conf_t *cf, ngx_command_t *cmd, void *dummy)
858 { 861 {
859 int m; 862 int m;