comparison src/http/ngx_http.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
186 (ngx_http_request_t *r, ngx_chain_t *chain); 186 (ngx_http_request_t *r, ngx_chain_t *chain);
187 187
188 188
189 189
190 typedef struct { 190 typedef struct {
191 int index; 191 int index;
192 192
193 void *(*create_srv_conf)(ngx_pool_t *p); 193 void *(*create_srv_conf)(ngx_pool_t *p);
194 void *(*create_loc_conf)(ngx_pool_t *p); 194 void *(*create_loc_conf)(ngx_pool_t *p);
195 195
196 int (*translate_handler)(ngx_http_request_t *r); 196 int (*translate_handler)(ngx_http_request_t *r);
197 197
198 int (*output_header_filter) (ngx_http_request_t *r); 198 int (*output_header_filter) (ngx_http_request_t *r);
199 int (*next_output_header_filter) (ngx_http_request_t *r); 199 int (*next_output_header_filter) (ngx_http_request_t *r);
200 200
201 ngx_http_output_body_filter_p output_body_filter; 201 int (*output_body_filter) (ngx_http_request_t *r, ngx_chain_t *ch);
202 ngx_http_output_body_filter_p next_output_body_filter; 202 int (*next_output_body_filter) (ngx_http_request_t *r, ngx_chain_t *ch);
203
204 #if 0
205 int (*output_body_filter)();
206 int (*next_output_body_filter)
207 (ngx_http_request_t *r, ngx_chain_t *ch);
208 #endif
209
210 #if 0
211 int (*next_output_body_filter)(int (**next_filter)
212 (ngx_http_request_t *r, ngx_chain_t *ch));
213 #endif
214 } ngx_http_module_t; 203 } ngx_http_module_t;
215 204
216 205
217 #define NGX_HTTP_MODULE 0x80000000 206 #define NGX_HTTP_MODULE 0x80000000
218 207
219 #define NGX_HTTP_MODULE_TYPE 0x50545448 /* "HTTP" */ 208 #define NGX_HTTP_MODULE_TYPE 0x50545448 /* "HTTP" */
220 209
221
222 /* STUB */
223 #define ngx_get_module_loc_conf(r, module) r->loc_conf[module.index]
224 #define ngx_get_module_ctx(r, module) r->ctx[module.index]
225 /**/
226 210
227 #define ngx_http_get_module_srv_conf(r, module) r->srv_conf[module.index] 211 #define ngx_http_get_module_srv_conf(r, module) r->srv_conf[module.index]
228 #define ngx_http_get_module_loc_conf(r, module) r->loc_conf[module.index] 212 #define ngx_http_get_module_loc_conf(r, module) r->loc_conf[module.index]
229 #define ngx_http_get_module_ctx(r, module) r->ctx[module.index] 213 #define ngx_http_get_module_ctx(r, module) r->ctx[module.index]
230 214