comparison src/core/ngx_conf_file.h @ 311:11ff50a35d6d

nginx-0.0.3-2004-04-12-20:38:09 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 12 Apr 2004 16:38:09 +0000
parents 6b91bfbc4123
children d71c87d11b16
comparison
equal deleted inserted replaced
310:a9a9af2c7370 311:11ff50a35d6d
18 #define NGX_CONF_TAKE3 0x00000008 18 #define NGX_CONF_TAKE3 0x00000008
19 #define NGX_CONF_TAKE4 0x00000010 19 #define NGX_CONF_TAKE4 0x00000010
20 #define NGX_CONF_TAKE5 0x00000020 20 #define NGX_CONF_TAKE5 0x00000020
21 #define NGX_CONF_TAKE6 0x00000040 21 #define NGX_CONF_TAKE6 0x00000040
22 #define NGX_CONF_TAKE7 0x00000080 22 #define NGX_CONF_TAKE7 0x00000080
23 #define NGX_CONF_TAKE8 0x00000100
24 #define NGX_CONF_TAKE9 0x00000200
25 23
26 #define NGX_CONF_TAKE12 (NGX_CONF_TAKE1|NGX_CONF_TAKE2) 24 #define NGX_CONF_TAKE12 (NGX_CONF_TAKE1|NGX_CONF_TAKE2)
27 #define NGX_CONF_TAKE13 (NGX_CONF_TAKE1|NGX_CONF_TAKE3) 25 #define NGX_CONF_TAKE13 (NGX_CONF_TAKE1|NGX_CONF_TAKE3)
28 26
29 #define NGX_CONF_TAKE23 (NGX_CONF_TAKE2|NGX_CONF_TAKE3) 27 #define NGX_CONF_TAKE23 (NGX_CONF_TAKE2|NGX_CONF_TAKE3)
30 28
31 #define NGX_CONF_TAKE1234 (NGX_CONF_TAKE1|NGX_CONF_TAKE2|NGX_CONF_TAKE3 \ 29 #define NGX_CONF_TAKE1234 (NGX_CONF_TAKE1|NGX_CONF_TAKE2|NGX_CONF_TAKE3 \
32 |NGX_CONF_TAKE4) 30 |NGX_CONF_TAKE4)
33 31
34 #define NGX_CONF_ARGS_NUMBER 0x0000ffff 32 #define NGX_CONF_ARGS_NUMBER 0x000000ff
35 #define NGX_CONF_BLOCK 0x00010000 33 #define NGX_CONF_BLOCK 0x00000100
36 #define NGX_CONF_FLAG 0x00020000 34 #define NGX_CONF_FLAG 0x00000200
37 #define NGX_CONF_ANY 0x00040000 35 #define NGX_CONF_ANY 0x00000400
38 #define NGX_CONF_1MORE 0x00080000 36 #define NGX_CONF_1MORE 0x00000800
39 #define NGX_CONF_2MORE 0x00100000 37 #define NGX_CONF_2MORE 0x00001000
40 38
39 #define NGX_DIRECT_CONF 0x00010000
41 #define NGX_MAIN_CONF 0x01000000 40 #define NGX_MAIN_CONF 0x01000000
42 41
43 42
44 43
45 #define NGX_CONF_UNSET -1 44 #define NGX_CONF_UNSET -1
100 #endif 99 #endif
101 }; 100 };
102 101
103 102
104 typedef struct { 103 typedef struct {
104 ngx_str_t name;
105 void *(*create_conf)(ngx_cycle_t *cycle);
106 char *(*init_conf)(ngx_cycle_t *cycle, void *conf);
107 } ngx_core_module_t;
108
109
110 typedef struct {
105 ngx_file_t file; 111 ngx_file_t file;
106 ngx_hunk_t *hunk; 112 ngx_hunk_t *hunk;
107 int line; 113 int line;
108 } ngx_conf_file_t; 114 } ngx_conf_file_t;
109 115
252 char *ngx_conf_set_sec_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); 258 char *ngx_conf_set_sec_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
253 char *ngx_conf_set_time_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); 259 char *ngx_conf_set_time_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
254 char *ngx_conf_set_bufs_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); 260 char *ngx_conf_set_bufs_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
255 char *ngx_conf_set_bitmask_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); 261 char *ngx_conf_set_bitmask_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
256 262
257 char *ngx_conf_set_core_flag_slot(ngx_conf_t *cf, ngx_command_t *cmd,
258 void *conf);
259 char *ngx_conf_set_core_num_slot(ngx_conf_t *cf, ngx_command_t *cmd,
260 void *conf);
261 char *ngx_conf_set_core_str_slot(ngx_conf_t *cf, ngx_command_t *cmd,
262 void *conf);
263
264 263
265 extern ngx_int_t ngx_max_module; 264 extern ngx_int_t ngx_max_module;
266 extern ngx_module_t *ngx_modules[]; 265 extern ngx_module_t *ngx_modules[];
267 266
268 267