Mercurial > hg > nginx
comparison src/core/ngx_config_file.h @ 41:59e7c7f30d49
nginx-0.0.1-2002-12-26-19:26:23 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 26 Dec 2002 16:26:23 +0000 |
parents | d5d4f3bba6f0 |
children | cd035a94e0b6 |
comparison
equal
deleted
inserted
replaced
40:d5d4f3bba6f0 | 41:59e7c7f30d49 |
---|---|
14 | 14 |
15 #define NGX_CONF_NOARGS 1 | 15 #define NGX_CONF_NOARGS 1 |
16 #define NGX_CONF_TAKE1 2 | 16 #define NGX_CONF_TAKE1 2 |
17 #define NGX_CONF_TAKE2 4 | 17 #define NGX_CONF_TAKE2 4 |
18 | 18 |
19 #define NGX_CONF_ITERATE 0 | 19 #define NGX_CONF_ANY 0x10000 |
20 #define NGX_CONF_BLOCK 0x20000 | |
20 | 21 |
21 #define NGX_CONF_UNSET -1 | 22 #define NGX_CONF_UNSET -1 |
22 | 23 |
23 | 24 |
24 #define NGX_CONF_BLOCK_DONE 1 | 25 #define NGX_CONF_BLOCK_DONE 1 |
26 | 27 |
27 | 28 |
28 typedef struct ngx_conf_s ngx_conf_t; | 29 typedef struct ngx_conf_s ngx_conf_t; |
29 | 30 |
30 | 31 |
31 typedef struct { | 32 typedef struct ngx_command_s ngx_command_t; |
33 struct ngx_command_s { | |
32 ngx_str_t name; | 34 ngx_str_t name; |
33 char *(*set)(ngx_conf_t *cf); | 35 int type; |
36 char *(*set)(ngx_conf_t *cf, ngx_command_t *cmd, char *conf); | |
37 int conf; | |
34 int offset; | 38 int offset; |
35 int zone; | 39 }; |
36 int type; | |
37 } ngx_command_t; | |
38 | 40 |
39 | 41 |
40 typedef struct { | 42 typedef struct { |
41 void *ctx; | 43 void *ctx; |
42 ngx_command_t *commands; | 44 ngx_command_t *commands; |
58 | 60 |
59 ngx_pool_t *pool; | 61 ngx_pool_t *pool; |
60 ngx_conf_file_t *conf_file; | 62 ngx_conf_file_t *conf_file; |
61 ngx_log_t *log; | 63 ngx_log_t *log; |
62 | 64 |
63 ngx_module_t *modules; | |
64 | |
65 void *ctx; | 65 void *ctx; |
66 int type; | |
66 int (*handler)(ngx_conf_t *cf); | 67 int (*handler)(ngx_conf_t *cf); |
67 }; | 68 }; |
68 | 69 |
69 | 70 |
70 int ngx_conf_parse(ngx_conf_t *cf, ngx_str_t *filename); | 71 int ngx_conf_parse(ngx_conf_t *cf, ngx_str_t *filename); |
71 | 72 |
72 | 73 |
73 char *ngx_conf_set_size_slot(ngx_conf_t *cf); | 74 char *ngx_conf_set_size_slot(ngx_conf_t *cf, ngx_command_t *cmd, char *conf); |
75 char *ngx_conf_set_time_slot(ngx_conf_t *cf, ngx_command_t *cmd, char *conf); | |
76 | |
77 | |
78 extern ngx_module_t *ngx_modules[]; | |
74 | 79 |
75 | 80 |
76 #endif _NGX_HTTP_CONFIG_FILE_H_INCLUDED_ | 81 #endif _NGX_HTTP_CONFIG_FILE_H_INCLUDED_ |