aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_hunk.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-10-27 21:01:00 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-10-27 21:01:00 +0000
commit2b0c76cfbdfd660242f47ce66a4d54d30f9b23e8 (patch)
tree0fd87b8ac4a82695019df8e591ad2c6dbfc26fa7 /src/core/ngx_hunk.h
parent425a42ce3dfe0a24c5c6eb44285447b40e685291 (diff)
downloadnginx-2b0c76cfbdfd660242f47ce66a4d54d30f9b23e8.tar.gz
nginx-2b0c76cfbdfd660242f47ce66a4d54d30f9b23e8.zip
nginx-0.0.1-2003-10-28-00:01:00 import
Diffstat (limited to 'src/core/ngx_hunk.h')
-rw-r--r--src/core/ngx_hunk.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/core/ngx_hunk.h b/src/core/ngx_hunk.h
index e9bb71cf0..82c5cc6f4 100644
--- a/src/core/ngx_hunk.h
+++ b/src/core/ngx_hunk.h
@@ -84,7 +84,6 @@ typedef struct {
unsigned sendfile;
unsigned need_in_memory;
unsigned need_in_temp;
- unsigned copy_chain;
ngx_pool_t *pool;
int hunks;
@@ -96,6 +95,14 @@ typedef struct {
} ngx_output_chain_ctx_t;
+typedef struct {
+ ngx_chain_t *out;
+ ngx_chain_t **last;
+ ngx_connection_t *connection;
+ ngx_pool_t *pool;
+} ngx_chain_write_ctx_t;
+
+
#define NGX_CHAIN_ERROR (ngx_chain_t *) NGX_ERROR
@@ -144,6 +151,8 @@ ngx_hunk_t *ngx_create_temp_hunk(ngx_pool_t *pool, int size,
int ngx_output_chain(ngx_output_chain_ctx_t *ctx, ngx_chain_t *in);
+int ngx_chain_write(void *data, ngx_chain_t *in);
+
int ngx_chain_add_copy(ngx_pool_t *pool, ngx_chain_t **chain, ngx_chain_t *in);
void ngx_chain_update_chains(ngx_chain_t **free, ngx_chain_t **busy,
ngx_chain_t **out, ngx_hunk_tag_t tag);