aboutsummaryrefslogtreecommitdiff
path: root/gzguts.h
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:27:08 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:27:08 -0700
commit7df877eccdd826e94df53215f65dee639428e83f (patch)
tree11ed5070798961e28a4c69d9272ecaada500abc3 /gzguts.h
parentdc5a43ebfadb6b775f6e64bfeb5a461c66acb394 (diff)
downloadzlib-7df877eccdd826e94df53215f65dee639428e83f.tar.gz
zlib-7df877eccdd826e94df53215f65dee639428e83f.tar.bz2
zlib-7df877eccdd826e94df53215f65dee639428e83f.zip
zlib 1.2.3.7v1.2.3.7
Diffstat (limited to 'gzguts.h')
-rw-r--r--gzguts.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/gzguts.h b/gzguts.h
index 8b7914d..26791b0 100644
--- a/gzguts.h
+++ b/gzguts.h
@@ -76,6 +76,11 @@
76#define GZ_WRITE 31153 76#define GZ_WRITE 31153
77#define GZ_APPEND 1 /* mode set to GZ_WRITE after the file is opened */ 77#define GZ_APPEND 1 /* mode set to GZ_WRITE after the file is opened */
78 78
79/* values for gz_state how */
80#define LOOK 0 /* look for a gzip header */
81#define COPY 1 /* copy input directly */
82#define GZIP 2 /* decompress a gzip stream */
83
79/* internal gzip file state data structure */ 84/* internal gzip file state data structure */
80typedef struct { 85typedef struct {
81 /* used for both reading and writing */ 86 /* used for both reading and writing */
@@ -89,17 +94,18 @@ typedef struct {
89 unsigned char *out; /* output buffer (double-sized when reading) */ 94 unsigned char *out; /* output buffer (double-sized when reading) */
90 unsigned char *next; /* next output data to deliver or write */ 95 unsigned char *next; /* next output data to deliver or write */
91 /* just for reading */ 96 /* just for reading */
92 int how; /* 0: get header, 1: copy, 2: decompress */ 97 unsigned have; /* amount of output data unused at next */
93 unsigned have; /* amount of output data unused */ 98 int eof; /* true if end of input file reached */
94 z_off64_t start; /* where the gzip data started, for rewinding */ 99 z_off64_t start; /* where the gzip data started, for rewinding */
95 z_off64_t raw; /* where the raw data started, for seeking */ 100 z_off64_t raw; /* where the raw data started, for seeking */
96 int eof; /* true if end of input file reached */ 101 int how; /* 0: get header, 1: copy, 2: decompress */
102 int direct; /* true if last read direct, false if gzip */
97 /* just for writing */ 103 /* just for writing */
98 int level; /* compression level */ 104 int level; /* compression level */
99 int strategy; /* compression strategy */ 105 int strategy; /* compression strategy */
100 /* seek request */ 106 /* seek request */
101 int seek; /* true if seek request pending */
102 z_off64_t skip; /* amount to skip (already rewound if backwards) */ 107 z_off64_t skip; /* amount to skip (already rewound if backwards) */
108 int seek; /* true if seek request pending */
103 /* error information */ 109 /* error information */
104 int err; /* error code */ 110 int err; /* error code */
105 char *msg; /* error message */ 111 char *msg; /* error message */