comparison src/core/ngx_conf_file.h @ 119:cd54bcbaf3b5

nginx-0.0.1-2003-07-21-01:15:59 import
author Igor Sysoev <igor@sysoev.ru>
date Sun, 20 Jul 2003 21:15:59 +0000
parents 5bf52498665c
children 656d468f4ead
comparison
equal deleted inserted replaced
118:5bf52498665c 119:cd54bcbaf3b5
38 38
39 #define NGX_CORE_MODULE 0x45524F43 /* "CORE" */ 39 #define NGX_CORE_MODULE 0x45524F43 /* "CORE" */
40 #define NGX_CONF_MODULE 0x464E4F43 /* "CONF" */ 40 #define NGX_CONF_MODULE 0x464E4F43 /* "CONF" */
41 41
42 42
43 #define MAX_CONF_ERRSTR 256
44 extern char ngx_conf_errstr[MAX_CONF_ERRSTR];
45
46 43
47 struct ngx_command_s { 44 struct ngx_command_s {
48 ngx_str_t name; 45 ngx_str_t name;
49 int type; 46 int type;
50 char *(*set)(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); 47 char *(*set)(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
57 54
58 55
59 struct ngx_open_file_s { 56 struct ngx_open_file_s {
60 ngx_fd_t fd; 57 ngx_fd_t fd;
61 ngx_str_t name; 58 ngx_str_t name;
59 #if 0
60 /* e.g. append mode, error_log */
61 int flags;
62 /* e.g. reopen db file */
63 int (*handler)(void *data, ngx_open_file_t *file);
64 void *data;
65 #endif
62 }; 66 };
63 67
64 68
65 struct ngx_cycle_s { 69 struct ngx_cycle_s {
66 void ****conf_ctx; 70 void ****conf_ctx;
176 180
177 181
178 char *ngx_conf_parse(ngx_conf_t *cf, ngx_str_t *filename); 182 char *ngx_conf_parse(ngx_conf_t *cf, ngx_str_t *filename);
179 183
180 184
185 ngx_open_file_t *ngx_conf_open_file(ngx_cycle_t *cycle, ngx_str_t *name);
181 void ngx_conf_log_error(int level, ngx_conf_t *cf, ngx_err_t err, 186 void ngx_conf_log_error(int level, ngx_conf_t *cf, ngx_err_t err,
182 char *fmt, ...); 187 char *fmt, ...);
183 188
184 189
185 char *ngx_conf_set_flag_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); 190 char *ngx_conf_set_flag_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
190 char *ngx_conf_set_time_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); 195 char *ngx_conf_set_time_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
191 196
192 char *ngx_conf_set_core_flag_slot(ngx_conf_t *cf, ngx_command_t *cmd, 197 char *ngx_conf_set_core_flag_slot(ngx_conf_t *cf, ngx_command_t *cmd,
193 void *conf); 198 void *conf);
194 199
200
195 extern ngx_module_t *ngx_modules[]; 201 extern ngx_module_t *ngx_modules[];
196 extern ngx_cycle_t *ngx_cycle; 202 extern ngx_cycle_t *ngx_cycle;
197 extern ngx_array_t ngx_old_cycles; 203 extern ngx_array_t ngx_old_cycles;
198 204
205
199 #endif /* _NGX_HTTP_CONF_FILE_H_INCLUDED_ */ 206 #endif /* _NGX_HTTP_CONF_FILE_H_INCLUDED_ */