Mercurial > hg > nginx
comparison src/core/ngx_hunk.h @ 162:96993d4d5067
nginx-0.0.1-2003-10-28-00:01:00 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 27 Oct 2003 21:01:00 +0000 |
parents | e7e094d34162 |
children | 389d7ee9fa60 |
comparison
equal
deleted
inserted
replaced
161:88abd07d9f62 | 162:96993d4d5067 |
---|---|
82 ngx_chain_t *busy; | 82 ngx_chain_t *busy; |
83 | 83 |
84 unsigned sendfile; | 84 unsigned sendfile; |
85 unsigned need_in_memory; | 85 unsigned need_in_memory; |
86 unsigned need_in_temp; | 86 unsigned need_in_temp; |
87 unsigned copy_chain; | |
88 | 87 |
89 ngx_pool_t *pool; | 88 ngx_pool_t *pool; |
90 int hunks; | 89 int hunks; |
91 ngx_bufs_t bufs; | 90 ngx_bufs_t bufs; |
92 ngx_hunk_tag_t tag; | 91 ngx_hunk_tag_t tag; |
93 | 92 |
94 ngx_output_chain_filter_pt output_filter; | 93 ngx_output_chain_filter_pt output_filter; |
95 void *output_ctx; | 94 void *output_ctx; |
96 } ngx_output_chain_ctx_t; | 95 } ngx_output_chain_ctx_t; |
96 | |
97 | |
98 typedef struct { | |
99 ngx_chain_t *out; | |
100 ngx_chain_t **last; | |
101 ngx_connection_t *connection; | |
102 ngx_pool_t *pool; | |
103 } ngx_chain_write_ctx_t; | |
97 | 104 |
98 | 105 |
99 #define NGX_CHAIN_ERROR (ngx_chain_t *) NGX_ERROR | 106 #define NGX_CHAIN_ERROR (ngx_chain_t *) NGX_ERROR |
100 | 107 |
101 | 108 |
142 } \ | 149 } \ |
143 last = &cl->next | 150 last = &cl->next |
144 | 151 |
145 | 152 |
146 int ngx_output_chain(ngx_output_chain_ctx_t *ctx, ngx_chain_t *in); | 153 int ngx_output_chain(ngx_output_chain_ctx_t *ctx, ngx_chain_t *in); |
154 int ngx_chain_write(void *data, ngx_chain_t *in); | |
155 | |
147 int ngx_chain_add_copy(ngx_pool_t *pool, ngx_chain_t **chain, ngx_chain_t *in); | 156 int ngx_chain_add_copy(ngx_pool_t *pool, ngx_chain_t **chain, ngx_chain_t *in); |
148 void ngx_chain_update_chains(ngx_chain_t **free, ngx_chain_t **busy, | 157 void ngx_chain_update_chains(ngx_chain_t **free, ngx_chain_t **busy, |
149 ngx_chain_t **out, ngx_hunk_tag_t tag); | 158 ngx_chain_t **out, ngx_hunk_tag_t tag); |
150 | 159 |
151 | 160 |