Mercurial > hg > nginx
comparison src/core/ngx_hunk.h @ 290:87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 16 Mar 2004 07:10:12 +0000 |
parents | 2357fa41738a |
children | 5cfd65b8b0a7 |
comparison
equal
deleted
inserted
replaced
289:0750faf8d7e3 | 290:87e73f067470 |
---|---|
43 typedef void * ngx_hunk_tag_t; | 43 typedef void * ngx_hunk_tag_t; |
44 | 44 |
45 typedef struct ngx_hunk_s ngx_hunk_t; | 45 typedef struct ngx_hunk_s ngx_hunk_t; |
46 | 46 |
47 struct ngx_hunk_s { | 47 struct ngx_hunk_s { |
48 char *pos; | 48 u_char *pos; |
49 char *last; | 49 u_char *last; |
50 off_t file_pos; | 50 off_t file_pos; |
51 off_t file_last; | 51 off_t file_last; |
52 | 52 |
53 int type; | 53 int type; |
54 char *start; /* start of hunk */ | 54 u_char *start; /* start of hunk */ |
55 char *end; /* end of hunk */ | 55 u_char *end; /* end of hunk */ |
56 ngx_hunk_tag_t tag; | 56 ngx_hunk_tag_t tag; |
57 ngx_file_t *file; | 57 ngx_file_t *file; |
58 ngx_hunk_t *shadow; | 58 ngx_hunk_t *shadow; |
59 /* STUB */ int num; | 59 /* STUB */ int num; |
60 }; | 60 }; |
67 ngx_chain_t *next; | 67 ngx_chain_t *next; |
68 }; | 68 }; |
69 | 69 |
70 | 70 |
71 typedef struct { | 71 typedef struct { |
72 int num; | 72 ngx_int_t num; |
73 size_t size; | 73 size_t size; |
74 } ngx_bufs_t; | 74 } ngx_bufs_t; |
75 | 75 |
76 | 76 |
77 typedef int (*ngx_output_chain_filter_pt)(void *ctx, ngx_chain_t *out); | 77 typedef int (*ngx_output_chain_filter_pt)(void *ctx, ngx_chain_t *out); |
85 unsigned sendfile; | 85 unsigned sendfile; |
86 unsigned need_in_memory; | 86 unsigned need_in_memory; |
87 unsigned need_in_temp; | 87 unsigned need_in_temp; |
88 | 88 |
89 ngx_pool_t *pool; | 89 ngx_pool_t *pool; |
90 int hunks; | 90 ngx_int_t hunks; |
91 ngx_bufs_t bufs; | 91 ngx_bufs_t bufs; |
92 ngx_hunk_tag_t tag; | 92 ngx_hunk_tag_t tag; |
93 | 93 |
94 ngx_output_chain_filter_pt output_filter; | 94 ngx_output_chain_filter_pt output_filter; |
95 void *output_ctx; | 95 void *output_ctx; |