1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
#include "api.h"
extern "C"
{
extern "C" {
int inflateReset(void *strm)
{
if (WASABI_API_INFLATE) return WASABI_API_INFLATE->inflateReset(strm);
return -4;
}
int inflateInit_(void *strm,const char *version, int stream_size)
{
if (WASABI_API_INFLATE) return WASABI_API_INFLATE->inflateInit_(strm,version,stream_size);
return -4;
}
int inflate(void *strm, int flush)
{
if (WASABI_API_INFLATE) return WASABI_API_INFLATE->inflate(strm,flush);
return -4;
}
int inflateEnd(void *strm)
{
if (WASABI_API_INFLATE) return WASABI_API_INFLATE->inflateEnd(strm);
return -2;
}
unsigned long crc32(unsigned long crc, const unsigned char *buf, unsigned int len)
{
if (WASABI_API_INFLATE) return WASABI_API_INFLATE->crc32(crc,buf,len);
return 0;
}
int deflateReset(void * strm)
{
if (WASABI_API_INFLATE) return WASABI_API_INFLATE->deflateReset(strm);
return -4;
}
int deflateInit2_(void * strm, int level, int method, int windowBits, int memLevel, int strategy, const char *version, int stream_size)
{
if (WASABI_API_INFLATE) return WASABI_API_INFLATE->deflateInit2_(strm, level, method, windowBits, memLevel, strategy, version, stream_size);
return -4;
}
int deflate(void * strm, int flush)
{
if (WASABI_API_INFLATE) return WASABI_API_INFLATE->deflate(strm, flush);
return -2;
}
int deflateEnd(void * strm)
{
if (WASABI_API_INFLATE) return WASABI_API_INFLATE->deflateEnd(strm);
return -4;
}
};
}
|