summaryrefslogtreecommitdiffhomepage
path: root/src/core/ngx_hunk.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-10-30 08:51:06 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-10-30 08:51:06 +0000
commit68ee8f144242965c9650ad99604d1717c0f84c18 (patch)
tree7327fe5fcc7b45d0ade16767c74e918b8ba6f328 /src/core/ngx_hunk.h
parent14be46ee9862352fc055da8005e9bdf3dd1bc16e (diff)
downloadnginx-68ee8f144242965c9650ad99604d1717c0f84c18.tar.gz
nginx-68ee8f144242965c9650ad99604d1717c0f84c18.tar.bz2
nginx-0.0.1-2003-10-30-11:51:06 import
Diffstat (limited to 'src/core/ngx_hunk.h')
-rw-r--r--src/core/ngx_hunk.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/core/ngx_hunk.h b/src/core/ngx_hunk.h
index 82c5cc6f4..3de78aa20 100644
--- a/src/core/ngx_hunk.h
+++ b/src/core/ngx_hunk.h
@@ -50,8 +50,6 @@ struct ngx_hunk_s {
int type;
char *start; /* start of hunk */
char *end; /* end of hunk */
- char *pre_start; /* start of pre-allocated hunk */
- char *post_end; /* end of post-allocated hunk */
ngx_hunk_tag_t tag;
ngx_file_t *file;
ngx_hunk_t *shadow;
@@ -100,7 +98,7 @@ typedef struct {
ngx_chain_t **last;
ngx_connection_t *connection;
ngx_pool_t *pool;
-} ngx_chain_write_ctx_t;
+} ngx_chain_writer_ctx_t;
#define NGX_CHAIN_ERROR (ngx_chain_t *) NGX_ERROR
@@ -123,8 +121,7 @@ typedef struct {
(size_t) (h->file_last - h->file_pos))
-ngx_hunk_t *ngx_create_temp_hunk(ngx_pool_t *pool, int size,
- int before, int after);
+ngx_hunk_t *ngx_create_temp_hunk(ngx_pool_t *pool, int size);
#define ngx_alloc_hunk(pool) ngx_palloc(pool, sizeof(ngx_hunk_t))
#define ngx_calloc_hunk(pool) ngx_pcalloc(pool, sizeof(ngx_hunk_t))
@@ -151,7 +148,7 @@ 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_writer(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,