40 #define ZLIB_VERSION "1.2.3"
41 #define ZLIB_VERNUM 0x1230
77 typedef voidpf (*alloc_func) OF((voidpf opaque, uInt items, uInt size));
78 typedef 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
172 #define Z_NEED_DICT 2
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()
212 ZEXTERN
const char * ZEXPORT zlibVersion OF((
void));
242 ZEXTERN
int ZEXPORT deflate OF((z_streamp strm,
int flush));
328 ZEXTERN
int ZEXPORT deflateEnd OF((z_streamp strm));
363 ZEXTERN
int ZEXPORT inflate OF((z_streamp strm,
int flush));
462 ZEXTERN
int ZEXPORT inflateEnd OF((z_streamp strm));
538 ZEXTERN
int ZEXPORT deflateSetDictionary OF((z_streamp strm,
539 const Bytef *dictionary,
577 ZEXTERN
int ZEXPORT deflateCopy OF((z_streamp dest,
595 ZEXTERN
int ZEXPORT deflateReset OF((z_streamp strm));
606 ZEXTERN
int ZEXPORT deflateParams OF((z_streamp strm,
627 ZEXTERN
int ZEXPORT deflateTune OF((z_streamp strm,
644 ZEXTERN uLong ZEXPORT deflateBound OF((z_streamp strm,
653 ZEXTERN
int ZEXPORT deflatePrime OF((z_streamp strm,
669 ZEXTERN
int ZEXPORT deflateSetHeader OF((z_streamp strm,
736 ZEXTERN
int ZEXPORT inflateSetDictionary OF((z_streamp strm,
737 const Bytef *dictionary,
758 ZEXTERN
int ZEXPORT inflateSync OF((z_streamp strm));
773 ZEXTERN
int ZEXPORT inflateCopy OF((z_streamp dest,
789 ZEXTERN
int ZEXPORT inflateReset OF((z_streamp strm));
799 ZEXTERN
int ZEXPORT inflatePrime OF((z_streamp strm,
815 ZEXTERN
int ZEXPORT inflateGetHeader OF((z_streamp strm,
877 typedef unsigned (*in_func) OF((
void FAR *,
unsigned char FAR * FAR *));
878 typedef int (*out_func) OF((
void FAR *,
unsigned char FAR *,
unsigned));
880 ZEXTERN
int ZEXPORT inflateBack OF((z_streamp strm,
881 in_func in,
void FAR *in_desc,
882 out_func out,
void FAR *out_desc));
949 ZEXTERN
int ZEXPORT inflateBackEnd OF((z_streamp strm));
957 ZEXTERN uLong ZEXPORT zlibCompileFlags OF((
void));
1009 ZEXTERN
int ZEXPORT compress OF((Bytef *dest, uLongf *destLen,
1010 const Bytef *source, uLong sourceLen));
1024 ZEXTERN
int ZEXPORT compress2 OF((Bytef *dest, uLongf *destLen,
1025 const Bytef *source, uLong sourceLen,
1040 ZEXTERN uLong ZEXPORT compressBound OF((uLong sourceLen));
1047 ZEXTERN
int ZEXPORT uncompress OF((Bytef *dest, uLongf *destLen,
1048 const Bytef *source, uLong sourceLen));
1066 typedef voidp gzFile;
1068 ZEXTERN gzFile ZEXPORT gzopen OF((
const char *path,
const char *mode));
1085 ZEXTERN gzFile ZEXPORT gzdopen OF((
int fd,
const char *mode));
1098 ZEXTERN
int ZEXPORT gzsetparams OF((gzFile file,
int level,
int strategy));
1106 ZEXTERN
int ZEXPORT gzread OF((gzFile file, voidp buf,
unsigned len));
1114 ZEXTERN
int ZEXPORT gzwrite OF((gzFile file,
1115 voidpc buf,
unsigned len));
1122 ZEXTERN
int ZEXPORTVA gzprintf OF((gzFile file,
const char *
format, ...));
1135 ZEXTERN
int ZEXPORT gzputs OF((gzFile file,
const char *s));
1142 ZEXTERN
char * ZEXPORT gzgets OF((gzFile file,
char *buf,
int len));
1151 ZEXTERN
int ZEXPORT gzputc OF((gzFile file,
int c));
1157 ZEXTERN
int ZEXPORT gzgetc OF((gzFile file));
1163 ZEXTERN
int ZEXPORT gzungetc OF((
int c, gzFile file));
1173 ZEXTERN
int ZEXPORT gzflush OF((gzFile file,
int flush));
1183 ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile file,
1184 z_off_t offset,
int whence));
1201 ZEXTERN
int ZEXPORT gzrewind OF((gzFile file));
1208 ZEXTERN z_off_t ZEXPORT gztell OF((gzFile file));
1217 ZEXTERN
int ZEXPORT gzeof OF((gzFile file));
1223 ZEXTERN
int ZEXPORT gzdirect OF((gzFile file));
1229 ZEXTERN
int ZEXPORT gzclose OF((gzFile file));
1236 ZEXTERN
const char * ZEXPORT gzerror OF((gzFile file,
int *errnum));
1245 ZEXTERN
void ZEXPORT gzclearerr OF((gzFile file));
1260 ZEXTERN uLong ZEXPORT adler32 OF((uLong adler,
const Bytef *buf, uInt len));
1276 ZEXTERN uLong ZEXPORT adler32_combine OF((uLong adler1, uLong adler2,
1285 ZEXTERN uLong ZEXPORT crc32 OF((uLong crc,
const Bytef *buf, uInt len));
1301 ZEXTERN uLong ZEXPORT crc32_combine OF((uLong crc1, uLong crc2, z_off_t len2));
1317 ZEXTERN
int ZEXPORT deflateInit_ OF((z_streamp strm,
int level,
1318 const char *version,
int stream_size));
1319 ZEXTERN
int ZEXPORT inflateInit_ OF((z_streamp strm,
1320 const char *version,
int stream_size));
1321 ZEXTERN
int ZEXPORT deflateInit2_ OF((z_streamp strm,
int level,
int method,
1322 int windowBits,
int memLevel,
1323 int strategy,
const char *version,
1325 ZEXTERN
int ZEXPORT inflateInit2_ OF((z_streamp strm,
int windowBits,
1326 const char *version,
int stream_size));
1327 ZEXTERN
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)
1349 ZEXTERN
const char * ZEXPORT zError OF((
int));
1350 ZEXTERN
int ZEXPORT inflateSyncPoint OF((z_streamp z));
1351 ZEXTERN
const uLongf * ZEXPORT get_crc_table OF((
void));
struct internal_state FAR * state