Mercurial > hg > nginx
comparison src/core/ngx_conf_file.h @ 109:a9bc21d63fe4
nginx-0.0.1-2003-07-02-18:41:17 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 02 Jul 2003 14:41:17 +0000 |
parents | b5be4b0448d3 |
children | d7f606e25b99 |
comparison
equal
deleted
inserted
replaced
108:adc093f880c8 | 109:a9bc21d63fe4 |
---|---|
54 }; | 54 }; |
55 | 55 |
56 #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} |
57 | 57 |
58 | 58 |
59 struct ngx_open_file_s { | |
60 ngx_fd_t fd; | |
61 ngx_str_t name; | |
62 }; | |
63 | |
64 | |
65 struct ngx_cycle_s { | |
66 void ****conf_ctx; | |
67 ngx_pool_t *pool; | |
68 ngx_log_t *log; | |
69 ngx_array_t listening; | |
70 ngx_array_t open_files; | |
71 | |
72 unsigned one_process:1; | |
73 }; | |
74 | |
75 | |
59 struct ngx_module_s { | 76 struct ngx_module_s { |
60 int ctx_index; | 77 int ctx_index; |
61 int index; | 78 int index; |
62 void *ctx; | 79 void *ctx; |
63 ngx_command_t *commands; | 80 ngx_command_t *commands; |
64 int type; | 81 int type; |
65 int (*init_module)(ngx_pool_t *p); | 82 int (*init_module)(ngx_cycle_t *cycle, ngx_log_t *log); |
83 int (*commit_module)(ngx_cycle_t *cycle, ngx_log_t *log); | |
84 int (*rollback_module)(ngx_cycle_t *cycle, ngx_log_t *log); | |
66 }; | 85 }; |
67 | 86 |
68 | 87 |
69 typedef struct { | 88 typedef struct { |
70 ngx_file_t file; | 89 ngx_file_t file; |
71 ngx_hunk_t *hunk; | 90 ngx_hunk_t *hunk; |
72 int line; | 91 int line; |
73 } ngx_conf_file_t; | 92 } ngx_conf_file_t; |
74 | |
75 | |
76 struct ngx_open_file_s { | |
77 ngx_fd_t fd; | |
78 ngx_str_t name; | |
79 }; | |
80 | |
81 | |
82 typedef struct { | |
83 ngx_pool_t *pool; | |
84 ngx_log_t *log; | |
85 ngx_array_t listening; | |
86 ngx_array_t open_files; | |
87 | |
88 unsigned one_process:1; | |
89 } ngx_cycle_t; | |
90 | 93 |
91 | 94 |
92 typedef char *(*ngx_conf_handler_pt)(ngx_conf_t *cf, | 95 typedef char *(*ngx_conf_handler_pt)(ngx_conf_t *cf, |
93 ngx_command_t *dummy, void *conf); | 96 ngx_command_t *dummy, void *conf); |
94 | 97 |