diff 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
line wrap: on
line diff
--- a/src/core/ngx_hunk.h	Mon Oct 27 16:16:17 2003 +0000
+++ b/src/core/ngx_hunk.h	Mon Oct 27 21:01:00 2003 +0000
@@ -84,7 +84,6 @@
     unsigned                     sendfile;
     unsigned                     need_in_memory;
     unsigned                     need_in_temp;
-    unsigned                     copy_chain;
 
     ngx_pool_t                  *pool;
     int                          hunks;
@@ -96,6 +95,14 @@
 } 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 @@
 
 
 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);