diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-10-27 08:53:49 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-10-27 08:53:49 +0000 |
commit | 10fc9ef77503ec4db5f5006557aeffc1939043ca (patch) | |
tree | 48dd22fcf5c6defd2960156f24a8b07757a7c6da /src/core/ngx_hunk.h | |
parent | 6414b96ebc50f42bf878aa84839921ab0aa9f4df (diff) | |
download | nginx-10fc9ef77503ec4db5f5006557aeffc1939043ca.tar.gz nginx-10fc9ef77503ec4db5f5006557aeffc1939043ca.zip |
nginx-0.0.1-2003-10-27-11:53:49 import
Diffstat (limited to 'src/core/ngx_hunk.h')
-rw-r--r-- | src/core/ngx_hunk.h | 24 |
1 files changed, 24 insertions, 0 deletions
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); |