40#define ZLIB_VERSION "1.1.4"
63typedef voidpf (*alloc_func) OF((voidpf opaque, uInt items, uInt size));
64typedef void (*free_func) OF((voidpf opaque, voidpf address));
68typedef struct z_stream_s {
78 struct internal_state FAR *state;
89typedef z_stream FAR *z_streamp;
126#define Z_PARTIAL_FLUSH 1
127#define Z_SYNC_FLUSH 2
128#define Z_FULL_FLUSH 3
133#define Z_STREAM_END 1
136#define Z_STREAM_ERROR (-2)
137#define Z_DATA_ERROR (-3)
138#define Z_MEM_ERROR (-4)
139#define Z_BUF_ERROR (-5)
140#define Z_VERSION_ERROR (-6)
145#define Z_NO_COMPRESSION 0
146#define Z_BEST_SPEED 1
147#define Z_BEST_COMPRESSION 9
148#define Z_DEFAULT_COMPRESSION (-1)
152#define Z_HUFFMAN_ONLY 2
153#define Z_DEFAULT_STRATEGY 0
166#define zlib_version zlibVersion()
171ZEXTERN
const char * ZEXPORT zlibVersion OF((
void));
201ZEXTERN
int ZEXPORT deflate OF((z_streamp strm,
int flush));
279ZEXTERN
int ZEXPORT deflateEnd OF((z_streamp strm));
314ZEXTERN
int ZEXPORT inflate OF((z_streamp strm,
int flush));
383ZEXTERN
int ZEXPORT inflateEnd OF((z_streamp strm));
444ZEXTERN
int ZEXPORT deflateSetDictionary OF((z_streamp strm,
445 const Bytef *dictionary,
480ZEXTERN
int ZEXPORT deflateCopy OF((z_streamp dest,
498ZEXTERN
int ZEXPORT deflateReset OF((z_streamp strm));
509ZEXTERN
int ZEXPORT deflateParams OF((z_streamp strm,
553ZEXTERN
int ZEXPORT inflateSetDictionary OF((z_streamp strm,
554 const Bytef *dictionary,
572ZEXTERN
int ZEXPORT inflateSync OF((z_streamp strm));
587ZEXTERN
int ZEXPORT inflateReset OF((z_streamp strm));
608ZEXTERN
int ZEXPORT compress OF((Bytef *dest, uLongf *destLen,
609 const Bytef *source, uLong sourceLen));
623ZEXTERN
int ZEXPORT compress2 OF((Bytef *dest, uLongf *destLen,
624 const Bytef *source, uLong sourceLen,
638ZEXTERN
int ZEXPORT uncompress OF((Bytef *dest, uLongf *destLen,
639 const Bytef *source, uLong sourceLen));
659ZEXTERN gzFile ZEXPORT gzopen OF((
const char *path,
const char *mode));
675ZEXTERN gzFile ZEXPORT gzdopen OF((
int fd,
const char *mode));
688ZEXTERN
int ZEXPORT gzsetparams OF((gzFile file,
int level,
int strategy));
696ZEXTERN
int ZEXPORT gzread OF((gzFile file, voidp buf,
unsigned len));
704ZEXTERN
int ZEXPORT gzwrite OF((gzFile file,
705 const voidp buf,
unsigned len));
712ZEXTERN
int ZEXPORTVA gzprintf OF((gzFile file,
const char *format, ...));
719ZEXTERN
int ZEXPORT gzputs OF((gzFile file,
const char *s));
726ZEXTERN
char * ZEXPORT gzgets OF((gzFile file,
char *buf,
int len));
735ZEXTERN
int ZEXPORT gzputc OF((gzFile file,
int c));
741ZEXTERN
int ZEXPORT gzgetc OF((gzFile file));
747ZEXTERN
int ZEXPORT gzflush OF((gzFile file,
int flush));
757ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile file,
758 z_off_t offset,
int whence));
775ZEXTERN
int ZEXPORT gzrewind OF((gzFile file));
782ZEXTERN z_off_t ZEXPORT gztell OF((gzFile file));
791ZEXTERN
int ZEXPORT gzeof OF((gzFile file));
797ZEXTERN
int ZEXPORT gzclose OF((gzFile file));
804ZEXTERN
const char * ZEXPORT gzerror OF((gzFile file,
int *errnum));
821ZEXTERN uLong ZEXPORT adler32 OF((uLong adler,
const Bytef *buf, uInt len));
838ZEXTERN uLong ZEXPORT crc32 OF((uLong crc,
const Bytef *buf, uInt len));
860ZEXTERN
int ZEXPORT deflateInit_ OF((z_streamp strm,
int level,
861 const char *version,
int stream_size));
862ZEXTERN
int ZEXPORT inflateInit_ OF((z_streamp strm,
863 const char *version,
int stream_size));
864ZEXTERN
int ZEXPORT deflateInit2_ OF((z_streamp strm,
int level,
int method,
865 int windowBits,
int memLevel,
866 int strategy,
const char *version,
868ZEXTERN
int ZEXPORT inflateInit2_ OF((z_streamp strm,
int windowBits,
869 const char *version,
int stream_size));
870#define deflateInit(strm, level) \
871 deflateInit_((strm), (level), ZLIB_VERSION, sizeof(z_stream))
872#define inflateInit(strm) \
873 inflateInit_((strm), ZLIB_VERSION, sizeof(z_stream))
874#define deflateInit2(strm, level, method, windowBits, memLevel, strategy) \
875 deflateInit2_((strm),(level),(method),(windowBits),(memLevel),\
876 (strategy), ZLIB_VERSION, sizeof(z_stream))
877#define inflateInit2(strm, windowBits) \
878 inflateInit2_((strm), (windowBits), ZLIB_VERSION, sizeof(z_stream))
881#if !defined(_Z_UTIL_H) && !defined(NO_DUMMY_DECL)
882 struct internal_state {
int dummy;};
885ZEXTERN
const char * ZEXPORT zError OF((
int err));
886ZEXTERN
int ZEXPORT inflateSyncPoint OF((z_streamp z));
887ZEXTERN
const uLongf * ZEXPORT get_crc_table OF((
void));