Mercurial > hg > nginx
comparison src/core/ngx_conf_file.h @ 218:05592fd7a436
nginx-0.0.1-2004-01-05-23:55:48 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 05 Jan 2004 20:55:48 +0000 |
parents | f1d0e5f09c1e |
children | 70e1c7d2b83d |
comparison
equal
deleted
inserted
replaced
217:c5d1cdcb04ec | 218:05592fd7a436 |
---|---|
83 void *data; | 83 void *data; |
84 #endif | 84 #endif |
85 }; | 85 }; |
86 | 86 |
87 | 87 |
88 struct ngx_cycle_s { | |
89 void ****conf_ctx; | |
90 ngx_pool_t *pool; | |
91 ngx_log_t *log; | |
92 ngx_array_t listening; | |
93 ngx_array_t open_files; | |
94 ngx_array_t pathes; | |
95 | |
96 int connection_n; | |
97 ngx_connection_t *connections; | |
98 ngx_event_t *read_events; | |
99 ngx_event_t *write_events; | |
100 | |
101 ngx_cycle_t *cycle; | |
102 ngx_cycle_t *old_cycle; | |
103 | |
104 unsigned one_process:1; | |
105 }; | |
106 | |
107 | |
108 struct ngx_module_s { | 88 struct ngx_module_s { |
109 int ctx_index; | 89 int ctx_index; |
110 int index; | 90 int index; |
111 void *ctx; | 91 void *ctx; |
112 ngx_command_t *commands; | 92 ngx_command_t *commands; |
113 int type; | 93 int type; |
114 int (*init_module)(ngx_cycle_t *cycle); | 94 int (*init_module)(ngx_cycle_t *cycle); |
115 int (*init_child)(ngx_cycle_t *cycle); | 95 int (*init_process)(ngx_cycle_t *cycle); |
96 #if 0 | |
97 int (*init_thread)(ngx_cycle_t *cycle); | |
98 #endif | |
116 }; | 99 }; |
117 | 100 |
118 | 101 |
119 typedef struct { | 102 typedef struct { |
120 ngx_file_t file; | 103 ngx_file_t file; |
269 char *ngx_conf_set_bufs_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); | 252 char *ngx_conf_set_bufs_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); |
270 char *ngx_conf_set_bitmask_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); | 253 char *ngx_conf_set_bitmask_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); |
271 | 254 |
272 char *ngx_conf_set_core_flag_slot(ngx_conf_t *cf, ngx_command_t *cmd, | 255 char *ngx_conf_set_core_flag_slot(ngx_conf_t *cf, ngx_command_t *cmd, |
273 void *conf); | 256 void *conf); |
274 | 257 char *ngx_conf_set_core_str_slot(ngx_conf_t *cf, ngx_command_t *cmd, |
275 | 258 void *conf); |
276 extern ngx_module_t *ngx_modules[]; | 259 |
277 extern volatile ngx_cycle_t *ngx_cycle; | 260 |
278 extern ngx_array_t ngx_old_cycles; | 261 extern ngx_int_t ngx_max_module; |
262 extern ngx_module_t *ngx_modules[]; | |
279 | 263 |
280 | 264 |
281 #endif /* _NGX_HTTP_CONF_FILE_H_INCLUDED_ */ | 265 #endif /* _NGX_HTTP_CONF_FILE_H_INCLUDED_ */ |