Mercurial > hg > nginx
comparison src/core/ngx_conf_file.h @ 156:afc333135a6b
nginx-0.0.1-2003-10-23-10:13:16 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 23 Oct 2003 06:13:16 +0000 |
parents | 46eb23d9471d |
children | 70b36c805682 |
comparison
equal
deleted
inserted
replaced
155:46eb23d9471d | 156:afc333135a6b |
---|---|
50 | 50 |
51 #define NGX_CORE_MODULE 0x45524F43 /* "CORE" */ | 51 #define NGX_CORE_MODULE 0x45524F43 /* "CORE" */ |
52 #define NGX_CONF_MODULE 0x464E4F43 /* "CONF" */ | 52 #define NGX_CONF_MODULE 0x464E4F43 /* "CONF" */ |
53 | 53 |
54 | 54 |
55 typedef struct ngx_conf_bounds_s ngx_conf_bounds_t; | |
56 | |
57 struct ngx_conf_bounds_s { | |
58 char *(*check)(ngx_conf_t *cf, ngx_conf_bounds_t *bounds, void *conf); | |
59 | |
60 union { | |
61 struct { | |
62 int low; | |
63 int high; | |
64 } num; | |
65 | |
66 struct num { | |
67 int low_num; | |
68 int high_num; | |
69 int low_size; | |
70 int high_size; | |
71 } bufs; | |
72 } type; | |
73 }; | |
74 | |
55 | 75 |
56 struct ngx_command_s { | 76 struct ngx_command_s { |
57 ngx_str_t name; | 77 ngx_str_t name; |
58 int type; | 78 int type; |
59 char *(*set)(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); | 79 char *(*set)(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); |
60 int conf; | 80 int conf; |
61 int offset; | 81 int offset; |
62 void *bounds; | 82 ngx_conf_bounds_t *bounds; |
63 }; | 83 }; |
64 | 84 |
65 #define ngx_null_command {ngx_null_string, 0, NULL, 0, 0, NULL} | 85 #define ngx_null_command { ngx_null_string, 0, NULL, 0, 0, NULL } |
66 | 86 |
67 | 87 |
68 struct ngx_open_file_s { | 88 struct ngx_open_file_s { |
69 ngx_fd_t fd; | 89 ngx_fd_t fd; |
70 ngx_str_t name; | 90 ngx_str_t name; |
219 char *ngx_conf_set_bufs_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); | 239 char *ngx_conf_set_bufs_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); |
220 | 240 |
221 char *ngx_conf_set_core_flag_slot(ngx_conf_t *cf, ngx_command_t *cmd, | 241 char *ngx_conf_set_core_flag_slot(ngx_conf_t *cf, ngx_command_t *cmd, |
222 void *conf); | 242 void *conf); |
223 | 243 |
244 char *ngx_conf_check_num_bounds(ngx_conf_t *cf, ngx_conf_bounds_t *bounds, | |
245 void *conf); | |
246 | |
224 | 247 |
225 extern ngx_module_t *ngx_modules[]; | 248 extern ngx_module_t *ngx_modules[]; |
226 extern ngx_cycle_t *ngx_cycle; | 249 extern ngx_cycle_t *ngx_cycle; |
227 extern ngx_array_t ngx_old_cycles; | 250 extern ngx_array_t ngx_old_cycles; |
228 | 251 |