Mercurial > hg > nginx
comparison src/core/ngx_conf_file.h @ 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 | a9bc21d63fe4 |
children | ac69ab96328d |
comparison
equal
deleted
inserted
replaced
112:da763a85be66 | 113:d7f606e25b99 |
---|---|
77 int ctx_index; | 77 int ctx_index; |
78 int index; | 78 int index; |
79 void *ctx; | 79 void *ctx; |
80 ngx_command_t *commands; | 80 ngx_command_t *commands; |
81 int type; | 81 int type; |
82 int (*init_module)(ngx_cycle_t *cycle, ngx_log_t *log); | 82 int (*init_module)(ngx_cycle_t *cycle); |
83 int (*commit_module)(ngx_cycle_t *cycle, ngx_log_t *log); | 83 int (*init_child)(ngx_cycle_t *cycle); |
84 int (*rollback_module)(ngx_cycle_t *cycle, ngx_log_t *log); | |
85 }; | 84 }; |
86 | 85 |
87 | 86 |
88 typedef struct { | 87 typedef struct { |
89 ngx_file_t file; | 88 ngx_file_t file; |
112 ngx_conf_handler_pt handler; | 111 ngx_conf_handler_pt handler; |
113 char *handler_conf; | 112 char *handler_conf; |
114 }; | 113 }; |
115 | 114 |
116 | 115 |
117 #define ngx_get_conf(module) ngx_conf_ctx[module.index] | 116 #define ngx_get_conf(conf_ctx, module) conf_ctx[module.index] |
118 | 117 |
119 | 118 |
120 #define ngx_conf_init_value(conf, default) \ | 119 #define ngx_conf_init_value(conf, default) \ |
121 if (conf == NGX_CONF_UNSET) { \ | 120 if (conf == NGX_CONF_UNSET) { \ |
122 conf = default; \ | 121 conf = default; \ |
177 char *ngx_conf_set_msec_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); | 176 char *ngx_conf_set_msec_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); |
178 char *ngx_conf_set_time_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); | 177 char *ngx_conf_set_time_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); |
179 | 178 |
180 | 179 |
181 extern ngx_module_t *ngx_modules[]; | 180 extern ngx_module_t *ngx_modules[]; |
182 extern void ****ngx_conf_ctx; | 181 extern ngx_cycle_t ngx_cycle; |
183 | 182 |
184 | 183 |
185 #endif /* _NGX_HTTP_CONF_FILE_H_INCLUDED_ */ | 184 #endif /* _NGX_HTTP_CONF_FILE_H_INCLUDED_ */ |