Mercurial > hg > nginx
comparison src/core/ngx_conf_file.h @ 356:2e3cbc1bbe3c
nginx-0.0.7-2004-06-16-19:32:11 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 16 Jun 2004 15:32:11 +0000 |
parents | 6bdf858bff8c |
children | c05876036128 |
comparison
equal
deleted
inserted
replaced
355:0fb6c53fb135 | 356:2e3cbc1bbe3c |
---|---|
88 #endif | 88 #endif |
89 }; | 89 }; |
90 | 90 |
91 | 91 |
92 struct ngx_module_s { | 92 struct ngx_module_s { |
93 int ctx_index; | 93 ngx_uint_t ctx_index; |
94 int index; | 94 ngx_uint_t index; |
95 void *ctx; | 95 void *ctx; |
96 ngx_command_t *commands; | 96 ngx_command_t *commands; |
97 int type; | 97 ngx_uint_t type; |
98 int (*init_module)(ngx_cycle_t *cycle); | 98 ngx_int_t (*init_module)(ngx_cycle_t *cycle); |
99 int (*init_process)(ngx_cycle_t *cycle); | 99 ngx_int_t (*init_process)(ngx_cycle_t *cycle); |
100 #if 0 | 100 #if 0 |
101 int (*init_thread)(ngx_cycle_t *cycle); | 101 ngx_int_t (*init_thread)(ngx_cycle_t *cycle); |
102 #endif | 102 #endif |
103 }; | 103 }; |
104 | 104 |
105 | 105 |
106 typedef struct { | 106 typedef struct { |
111 | 111 |
112 | 112 |
113 typedef struct { | 113 typedef struct { |
114 ngx_file_t file; | 114 ngx_file_t file; |
115 ngx_buf_t *buffer; | 115 ngx_buf_t *buffer; |
116 int line; | 116 ngx_uint_t line; |
117 } ngx_conf_file_t; | 117 } ngx_conf_file_t; |
118 | 118 |
119 | 119 |
120 typedef char *(*ngx_conf_handler_pt)(ngx_conf_t *cf, | 120 typedef char *(*ngx_conf_handler_pt)(ngx_conf_t *cf, |
121 ngx_command_t *dummy, void *conf); | 121 ngx_command_t *dummy, void *conf); |
129 ngx_pool_t *pool; | 129 ngx_pool_t *pool; |
130 ngx_conf_file_t *conf_file; | 130 ngx_conf_file_t *conf_file; |
131 ngx_log_t *log; | 131 ngx_log_t *log; |
132 | 132 |
133 void *ctx; | 133 void *ctx; |
134 int module_type; | 134 ngx_uint_t module_type; |
135 int cmd_type; | 135 ngx_uint_t cmd_type; |
136 | 136 |
137 ngx_conf_handler_pt handler; | 137 ngx_conf_handler_pt handler; |
138 char *handler_conf; | 138 char *handler_conf; |
139 }; | 139 }; |
140 | 140 |