comparison src/core/ngx_conf_file.h @ 90:37530da31268

nginx-0.0.1-2003-05-16-19:27:48 import
author Igor Sysoev <igor@sysoev.ru>
date Fri, 16 May 2003 15:27:48 +0000
parents 29bf798b583f
children 637625a2acdb
comparison
equal deleted inserted replaced
89:29bf798b583f 90:37530da31268
15 15
16 /* 16 /*
17 * AAAA number of agruments 17 * AAAA number of agruments
18 * FF command flags 18 * FF command flags
19 * TT command type, i.e. HTTP "location" or "server" command 19 * TT command type, i.e. HTTP "location" or "server" command
20 * 00
21 */ 20 */
22 21
23 #define NGX_CONF_NOARGS 0x0000000001 22 #define NGX_CONF_NOARGS 0x00000001
24 #define NGX_CONF_TAKE1 0x0000000002 23 #define NGX_CONF_TAKE1 0x00000002
25 #define NGX_CONF_TAKE2 0x0000000004 24 #define NGX_CONF_TAKE2 0x00000004
26 #define NGX_CONF_ARGS_NUMBER 0x000000ffff 25 #define NGX_CONF_ARGS_NUMBER 0x0000ffff
27 #define NGX_CONF_ANY 0x0000010000 26 #define NGX_CONF_ANY 0x00010000
28 #define NGX_CONF_BLOCK 0x0000020000 27 #define NGX_CONF_BLOCK 0x00020000
29 #define NGX_CONF_FLAG 0x0000040000 28 #define NGX_CONF_FLAG 0x00040000
30 29
31 #define NGX_MAIN_CONF 0x0001000000 30 #define NGX_MAIN_CONF 0x01000000
32 31
33 32
34 33
35 #define NGX_CONF_UNSET -1 34 #define NGX_CONF_UNSET -1
36 35
59 void *bounds; 58 void *bounds;
60 }; 59 };
61 60
62 61
63 typedef struct { 62 typedef struct {
63 void *ctx;
64 int index; 64 int index;
65 void *ctx;
66 ngx_command_t *commands; 65 ngx_command_t *commands;
67 int type; 66 int type;
68 int (*init_module)(ngx_pool_t *p); 67 int (*init_module)(ngx_pool_t *p);
69 } ngx_module_t; 68 } ngx_module_t;
70 69
119 char *ngx_conf_parse(ngx_conf_t *cf, ngx_str_t *filename); 118 char *ngx_conf_parse(ngx_conf_t *cf, ngx_str_t *filename);
120 119
121 120
122 char *ngx_conf_set_flag_slot(ngx_conf_t *cf, ngx_command_t *cmd, char *conf); 121 char *ngx_conf_set_flag_slot(ngx_conf_t *cf, ngx_command_t *cmd, char *conf);
123 char *ngx_conf_set_str_slot(ngx_conf_t *cf, ngx_command_t *cmd, char *conf); 122 char *ngx_conf_set_str_slot(ngx_conf_t *cf, ngx_command_t *cmd, char *conf);
123 char *ngx_conf_set_num_slot(ngx_conf_t *cf, ngx_command_t *cmd, char *conf);
124 char *ngx_conf_set_size_slot(ngx_conf_t *cf, ngx_command_t *cmd, char *conf); 124 char *ngx_conf_set_size_slot(ngx_conf_t *cf, ngx_command_t *cmd, char *conf);
125 char *ngx_conf_set_msec_slot(ngx_conf_t *cf, ngx_command_t *cmd, char *conf); 125 char *ngx_conf_set_msec_slot(ngx_conf_t *cf, ngx_command_t *cmd, char *conf);
126 char *ngx_conf_set_time_slot(ngx_conf_t *cf, ngx_command_t *cmd, char *conf); 126 char *ngx_conf_set_time_slot(ngx_conf_t *cf, ngx_command_t *cmd, char *conf);
127 127
128 128