From 10fc9ef77503ec4db5f5006557aeffc1939043ca Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 27 Oct 2003 08:53:49 +0000 Subject: nginx-0.0.1-2003-10-27-11:53:49 import --- src/core/ngx_hunk.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/core/ngx_hunk.h') diff --git a/src/core/ngx_hunk.h b/src/core/ngx_hunk.h index abbdcfe48..e9bb71cf0 100644 --- a/src/core/ngx_hunk.h +++ b/src/core/ngx_hunk.h @@ -73,6 +73,29 @@ typedef struct { } ngx_bufs_t; +typedef int (*ngx_output_chain_filter_pt)(void *ctx, ngx_chain_t *out); + +typedef struct { + ngx_hunk_t *hunk; + ngx_chain_t *in; + ngx_chain_t *free; + ngx_chain_t *busy; + + unsigned sendfile; + unsigned need_in_memory; + unsigned need_in_temp; + unsigned copy_chain; + + ngx_pool_t *pool; + int hunks; + ngx_bufs_t bufs; + ngx_hunk_tag_t tag; + + ngx_output_chain_filter_pt output_filter; + void *output_ctx; +} ngx_output_chain_ctx_t; + + #define NGX_CHAIN_ERROR (ngx_chain_t *) NGX_ERROR @@ -120,6 +143,7 @@ ngx_hunk_t *ngx_create_temp_hunk(ngx_pool_t *pool, int size, last = &cl->next +int ngx_output_chain(ngx_output_chain_ctx_t *ctx, 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); -- cgit