40#define ZLIB_VERSION "1.2.3"
41#define ZLIB_VERNUM 0x1230
77typedef voidpf (*alloc_func) OF((voidpf opaque, uInt items, uInt size));
78typedef void (*free_func) OF((voidpf opaque, voidpf address));
163#define Z_PARTIAL_FLUSH 1
164#define Z_SYNC_FLUSH 2
165#define Z_FULL_FLUSH 3
171#define Z_STREAM_END 1
174#define Z_STREAM_ERROR (-2)
175#define Z_DATA_ERROR (-3)
176#define Z_MEM_ERROR (-4)
177#define Z_BUF_ERROR (-5)
178#define Z_VERSION_ERROR (-6)
183#define Z_NO_COMPRESSION 0
184#define Z_BEST_SPEED 1
185#define Z_BEST_COMPRESSION 9
186#define Z_DEFAULT_COMPRESSION (-1)
190#define Z_HUFFMAN_ONLY 2
193#define Z_DEFAULT_STRATEGY 0
198#define Z_ASCII Z_TEXT
207#define zlib_version zlibVersion()
212ZEXTERN
const char * ZEXPORT zlibVersion OF((
void));
242ZEXTERN
int ZEXPORT deflate OF((z_streamp strm,
int flush));
328ZEXTERN
int ZEXPORT deflateEnd OF((z_streamp strm));
363ZEXTERN
int ZEXPORT inflate OF((z_streamp strm,
int flush));
462ZEXTERN
int ZEXPORT inflateEnd OF((z_streamp strm));
538ZEXTERN
int ZEXPORT deflateSetDictionary OF((z_streamp strm,
539 const Bytef *dictionary,
577ZEXTERN
int ZEXPORT deflateCopy OF((z_streamp dest,
595ZEXTERN
int ZEXPORT deflateReset OF((z_streamp strm));
606ZEXTERN
int ZEXPORT deflateParams OF((z_streamp strm,
627ZEXTERN
int ZEXPORT deflateTune OF((z_streamp strm,
644ZEXTERN uLong ZEXPORT deflateBound OF((z_streamp strm,
653ZEXTERN
int ZEXPORT deflatePrime OF((z_streamp strm,
669ZEXTERN
int ZEXPORT deflateSetHeader OF((z_streamp strm,
736ZEXTERN
int ZEXPORT inflateSetDictionary OF((z_streamp strm,
737 const Bytef *dictionary,
758ZEXTERN
int ZEXPORT inflateSync OF((z_streamp strm));
773ZEXTERN
int ZEXPORT inflateCopy OF((z_streamp dest,
789ZEXTERN
int ZEXPORT inflateReset OF((z_streamp strm));
799ZEXTERN
int ZEXPORT inflatePrime OF((z_streamp strm,
815ZEXTERN
int ZEXPORT inflateGetHeader OF((z_streamp strm,
877typedef unsigned (*in_func) OF((
void FAR *,
unsigned char FAR * FAR *));
878typedef int (*out_func) OF((
void FAR *,
unsigned char FAR *,
unsigned));
880ZEXTERN
int ZEXPORT inflateBack OF((z_streamp strm,
881 in_func in,
void FAR *in_desc,
882 out_func out,
void FAR *out_desc));
949ZEXTERN
int ZEXPORT inflateBackEnd OF((z_streamp strm));
957ZEXTERN uLong ZEXPORT zlibCompileFlags OF((
void));
1009ZEXTERN
int ZEXPORT compress OF((Bytef *dest, uLongf *destLen,
1010 const Bytef *source, uLong sourceLen));
1024ZEXTERN
int ZEXPORT compress2 OF((Bytef *dest, uLongf *destLen,
1025 const Bytef *source, uLong sourceLen,
1040ZEXTERN uLong ZEXPORT compressBound OF((uLong sourceLen));
1047ZEXTERN
int ZEXPORT uncompress OF((Bytef *dest, uLongf *destLen,
1048 const Bytef *source, uLong sourceLen));
1066typedef voidp gzFile;
1068ZEXTERN gzFile ZEXPORT gzopen OF((
const char *path,
const char *mode));
1085ZEXTERN gzFile ZEXPORT gzdopen OF((
int fd,
const char *mode));
1098ZEXTERN
int ZEXPORT gzsetparams OF((gzFile file,
int level,
int strategy));
1106ZEXTERN
int ZEXPORT gzread OF((gzFile file, voidp buf,
unsigned len));
1114ZEXTERN
int ZEXPORT gzwrite OF((gzFile file,
1115 voidpc buf,
unsigned len));
1122ZEXTERN
int ZEXPORTVA gzprintf OF((gzFile file,
const char *
format, ...));
1135ZEXTERN
int ZEXPORT gzputs OF((gzFile file,
const char *s));
1142ZEXTERN
char * ZEXPORT gzgets OF((gzFile file,
char *buf,
int len));
1151ZEXTERN
int ZEXPORT gzputc OF((gzFile file,
int c));
1157ZEXTERN
int ZEXPORT gzgetc OF((gzFile file));
1163ZEXTERN
int ZEXPORT gzungetc OF((
int c, gzFile file));
1173ZEXTERN
int ZEXPORT gzflush OF((gzFile file,
int flush));
1183ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile file,
1184 z_off_t offset,
int whence));
1201ZEXTERN
int ZEXPORT gzrewind OF((gzFile file));
1208ZEXTERN z_off_t ZEXPORT gztell OF((gzFile file));
1217ZEXTERN
int ZEXPORT gzeof OF((gzFile file));
1223ZEXTERN
int ZEXPORT gzdirect OF((gzFile file));
1229ZEXTERN
int ZEXPORT gzclose OF((gzFile file));
1236ZEXTERN
const char * ZEXPORT gzerror OF((gzFile file,
int *errnum));
1245ZEXTERN
void ZEXPORT gzclearerr OF((gzFile file));
1260ZEXTERN uLong ZEXPORT adler32 OF((uLong adler,
const Bytef *buf, uInt len));
1276ZEXTERN uLong ZEXPORT adler32_combine OF((uLong adler1, uLong adler2,
1285ZEXTERN uLong ZEXPORT crc32 OF((uLong crc,
const Bytef *buf, uInt len));
1301ZEXTERN uLong ZEXPORT crc32_combine OF((uLong crc1, uLong crc2, z_off_t len2));
1317ZEXTERN
int ZEXPORT deflateInit_ OF((z_streamp strm,
int level,
1318 const char *version,
int stream_size));
1319ZEXTERN
int ZEXPORT inflateInit_ OF((z_streamp strm,
1320 const char *version,
int stream_size));
1321ZEXTERN
int ZEXPORT deflateInit2_ OF((z_streamp strm,
int level,
int method,
1322 int windowBits,
int memLevel,
1323 int strategy,
const char *version,
1325ZEXTERN
int ZEXPORT inflateInit2_ OF((z_streamp strm,
int windowBits,
1326 const char *version,
int stream_size));
1327ZEXTERN
int ZEXPORT inflateBackInit_ OF((z_streamp strm,
int windowBits,
1328 unsigned char FAR *window,
1329 const char *version,
1331#define deflateInit(strm, level) \
1332 deflateInit_((strm), (level), ZLIB_VERSION, sizeof(z_stream))
1333#define inflateInit(strm) \
1334 inflateInit_((strm), ZLIB_VERSION, sizeof(z_stream))
1335#define deflateInit2(strm, level, method, windowBits, memLevel, strategy) \
1336 deflateInit2_((strm),(level),(method),(windowBits),(memLevel),\
1337 (strategy), ZLIB_VERSION, sizeof(z_stream))
1338#define inflateInit2(strm, windowBits) \
1339 inflateInit2_((strm), (windowBits), ZLIB_VERSION, sizeof(z_stream))
1340#define inflateBackInit(strm, windowBits, window) \
1341 inflateBackInit_((strm), (windowBits), (window), \
1342 ZLIB_VERSION, sizeof(z_stream))
1345#if !defined(ZUTIL_H) && !defined(NO_DUMMY_DECL)
1349ZEXTERN
const char * ZEXPORT zError OF((
int));
1350ZEXTERN
int ZEXPORT inflateSyncPoint OF((z_streamp z));
1351ZEXTERN
const uLongf * ZEXPORT get_crc_table OF((
void));
struct internal_state FAR * state