comparison src/http/ngx_http_write_filter.c @ 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 e366ba5db8f8
children 446782c909b3
comparison
equal deleted inserted replaced
355:0fb6c53fb135 356:2e3cbc1bbe3c
16 16
17 17
18 static void *ngx_http_write_filter_create_conf(ngx_conf_t *cf); 18 static void *ngx_http_write_filter_create_conf(ngx_conf_t *cf);
19 static char *ngx_http_write_filter_merge_conf(ngx_conf_t *cf, 19 static char *ngx_http_write_filter_merge_conf(ngx_conf_t *cf,
20 void *parent, void *child); 20 void *parent, void *child);
21 static int ngx_http_write_filter_init(ngx_cycle_t *cycle); 21 static ngx_int_t ngx_http_write_filter_init(ngx_cycle_t *cycle);
22 22
23 23
24 static ngx_command_t ngx_http_write_filter_commands[] = { 24 static ngx_command_t ngx_http_write_filter_commands[] = {
25 25
26 /* STUB */ 26 /* STUB */
64 ngx_http_write_filter_init, /* init module */ 64 ngx_http_write_filter_init, /* init module */
65 NULL /* init process */ 65 NULL /* init process */
66 }; 66 };
67 67
68 68
69 int ngx_http_write_filter(ngx_http_request_t *r, ngx_chain_t *in) 69 ngx_int_t ngx_http_write_filter(ngx_http_request_t *r, ngx_chain_t *in)
70 { 70 {
71 int last; 71 int last;
72 off_t size, flush; 72 off_t size, flush;
73 ngx_chain_t *cl, *ln, **ll, *chain; 73 ngx_chain_t *cl, *ln, **ll, *chain;
74 ngx_http_write_filter_ctx_t *ctx; 74 ngx_http_write_filter_ctx_t *ctx;
194 194
195 return NULL; 195 return NULL;
196 } 196 }
197 197
198 198
199 static int ngx_http_write_filter_init(ngx_cycle_t *cycle) 199 static ngx_int_t ngx_http_write_filter_init(ngx_cycle_t *cycle)
200 { 200 {
201 ngx_http_top_body_filter = ngx_http_write_filter; 201 ngx_http_top_body_filter = ngx_http_write_filter;
202 202
203 return NGX_OK; 203 return NGX_OK;
204 } 204 }