Mercurial > hg > nginx
comparison src/http/ngx_http_write_filter.c @ 119:cd54bcbaf3b5
nginx-0.0.1-2003-07-21-01:15:59 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 20 Jul 2003 21:15:59 +0000 |
parents | d7f606e25b99 |
children | cb77c084acdb |
comparison
equal
deleted
inserted
replaced
118:5bf52498665c | 119:cd54bcbaf3b5 |
---|---|
13 typedef struct { | 13 typedef struct { |
14 ngx_chain_t *out; | 14 ngx_chain_t *out; |
15 } ngx_http_write_filter_ctx_t; | 15 } ngx_http_write_filter_ctx_t; |
16 | 16 |
17 | 17 |
18 static void *ngx_http_write_filter_create_conf(ngx_pool_t *pool); | 18 static void *ngx_http_write_filter_create_conf(ngx_conf_t *cf); |
19 static char *ngx_http_write_filter_merge_conf(ngx_pool_t *pool, | 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 int 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[] = { |
160 return NGX_AGAIN; | 160 return NGX_AGAIN; |
161 } | 161 } |
162 } | 162 } |
163 | 163 |
164 | 164 |
165 static void *ngx_http_write_filter_create_conf(ngx_pool_t *pool) | 165 static void *ngx_http_write_filter_create_conf(ngx_conf_t *cf) |
166 { | 166 { |
167 ngx_http_write_filter_conf_t *conf; | 167 ngx_http_write_filter_conf_t *conf; |
168 | 168 |
169 ngx_test_null(conf, | 169 ngx_test_null(conf, |
170 ngx_palloc(pool, sizeof(ngx_http_write_filter_conf_t)), | 170 ngx_palloc(cf->pool, sizeof(ngx_http_write_filter_conf_t)), |
171 NULL); | 171 NULL); |
172 | 172 |
173 conf->buffer_output = NGX_CONF_UNSET; | 173 conf->buffer_output = NGX_CONF_UNSET; |
174 | 174 |
175 return conf; | 175 return conf; |
176 } | 176 } |
177 | 177 |
178 | 178 |
179 static char *ngx_http_write_filter_merge_conf(ngx_pool_t *pool, | 179 static char *ngx_http_write_filter_merge_conf(ngx_conf_t *cf, |
180 void *parent, void *child) | 180 void *parent, void *child) |
181 { | 181 { |
182 ngx_http_write_filter_conf_t *prev = parent; | 182 ngx_http_write_filter_conf_t *prev = parent; |
183 ngx_http_write_filter_conf_t *conf = child; | 183 ngx_http_write_filter_conf_t *conf = child; |
184 | 184 |