2 * tinf - tiny inflate library (inflate, gzip, zlib)
6 * Copyright (c) 2003 by Joergen Ibsen / Jibz
9 * http://www.ibsensoftware.com/
12 #ifndef TINF_H_INCLUDED
13 #define TINF_H_INCLUDED
15 /* calling convention */
18 #define TINFCC __cdecl
29 #define TINF_DATA_ERROR (-3)
31 /* function prototypes */
33 void TINFCC tinf_init(void);
35 int TINFCC tinf_uncompress(void *dest, unsigned int *destLen,
36 const void *source, unsigned int sourceLen);
38 int TINFCC tinf_gzip_uncompress(void *dest, unsigned int *destLen,
39 const void *source, unsigned int sourceLen);
41 int TINFCC tinf_zlib_uncompress(void *dest, unsigned int *destLen,
42 const void *source, unsigned int sourceLen);
44 unsigned int TINFCC tinf_adler32(const void *data, unsigned int length);
46 unsigned int TINFCC tinf_crc32(const void *data, unsigned int length);
52 #endif /* TINF_H_INCLUDED */