1
2
3
4
5
6 #ifndef CMAJOR_RT_ZLIB_INTERFACE_INCLUDED
7 #define CMAJOR_RT_ZLIB_INTERFACE_INCLUDED
8 #include <stdint.h>
9
10 #ifdef __cplusplus
11
12 #endif
13
14 int32_t zlib_init(int32_t mode, int32_t level, void** handle);
15 void zlib_done(int32_t mode, void* handle);
16 void zlib_set_input(void* inChunk, uint32_t inAvail, void* handle);
17 int32_t zlib_deflate(void* outChunk, uint32_t outChunkSize, uint32_t* have, uint32_t* outAvail, void* handle, int32_t flush);
18 int32_t zlib_inflate(void* outChunk, uint32_t outChunkSize, uint32_t* have, uint32_t* outAvail, uint32_t* inAvail, void* handle);
19 const char* zlib_retval_str(int32_t retVal);
20
21 #ifdef __cplusplus
22
23 #endif
24
25 #endif // CMAJOR_RT_ZLIB_INTERFACE_INCLUDED