Mercurial > hg > nginx
comparison src/core/ngx_conf_file.h @ 100:7ebc8b7fb816
nginx-0.0.1-2003-06-03-19:42:58 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 03 Jun 2003 15:42:58 +0000 |
parents | a059e1aa65d4 |
children | 6dfda4cf5200 |
comparison
equal
deleted
inserted
replaced
99:a059e1aa65d4 | 100:7ebc8b7fb816 |
---|---|
1 #ifndef _NGX_HTTP_CONF_FILE_H_INCLUDED_ | 1 #ifndef _NGX_HTTP_CONF_FILE_H_INCLUDED_ |
2 #define _NGX_HTTP_CONF_FILE_H_INCLUDED_ | 2 #define _NGX_HTTP_CONF_FILE_H_INCLUDED_ |
3 | 3 |
4 | 4 |
5 #include <ngx_config.h> | 5 #include <ngx_config.h> |
6 #include <ngx_files.h> | 6 #include <ngx_core.h> |
7 #include <ngx_log.h> | |
8 #include <ngx_file.h> | |
9 #include <ngx_time.h> | |
10 #include <ngx_string.h> | |
11 #include <ngx_alloc.h> | |
12 #include <ngx_hunk.h> | |
13 #include <ngx_array.h> | |
14 | 7 |
15 | 8 |
16 /* | 9 /* |
17 * AAAA number of agruments | 10 * AAAA number of agruments |
18 * FF command flags | 11 * FF command flags |
49 | 42 |
50 #define MAX_CONF_ERRSTR 256 | 43 #define MAX_CONF_ERRSTR 256 |
51 extern char ngx_conf_errstr[MAX_CONF_ERRSTR]; | 44 extern char ngx_conf_errstr[MAX_CONF_ERRSTR]; |
52 | 45 |
53 | 46 |
54 typedef struct ngx_conf_s ngx_conf_t; | |
55 | |
56 | |
57 typedef struct ngx_command_s ngx_command_t; | |
58 struct ngx_command_s { | 47 struct ngx_command_s { |
59 ngx_str_t name; | 48 ngx_str_t name; |
60 int type; | 49 int type; |
61 char *(*set)(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); | 50 char *(*set)(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); |
62 int conf; | 51 int conf; |
64 void *bounds; | 53 void *bounds; |
65 }; | 54 }; |
66 | 55 |
67 #define ngx_null_command {ngx_null_string, 0, NULL, 0, 0, NULL} | 56 #define ngx_null_command {ngx_null_string, 0, NULL, 0, 0, NULL} |
68 | 57 |
69 typedef struct { | 58 |
59 struct ngx_module_s { | |
70 int ctx_index; | 60 int ctx_index; |
71 int index; | 61 int index; |
72 void *ctx; | 62 void *ctx; |
73 ngx_command_t *commands; | 63 ngx_command_t *commands; |
74 int type; | 64 int type; |
75 int (*init_module)(ngx_pool_t *p); | 65 int (*init_module)(ngx_pool_t *p); |
76 } ngx_module_t; | 66 }; |
77 | 67 |
78 | 68 |
79 typedef struct { | 69 typedef struct { |
80 ngx_file_t file; | 70 ngx_file_t file; |
81 ngx_hunk_t *hunk; | 71 ngx_hunk_t *hunk; |