1
2
3
4
5
6 #ifndef CMAJOR_RT_BZ2_INTERFACE_INCLUDED
7 #define CMAJOR_RT_BZ2_INTERFACE_INCLUDED
8 #include <stdint.h>
9
10 #if defined (__cplusplus)
11
12 #endif
13
14 int32_t bz2_init(int32_t mode, int32_t compressionLevel, int32_t compressionWorkFactor, void** handle);
15 void bz2_done(int32_t mode, void* handle);
16 void bz2_set_input(void* inChunk, uint32_t inAvail, void* handle);
17 int32_t bz2_compress(void* outChunk, uint32_t outChunkSize, uint32_t* have, uint32_t* outAvail, void* handle, int32_t action);
18 int32_t bz2_decompress(void* outChunk, uint32_t outChunkSize, uint32_t* have, uint32_t* outAvail, uint32_t* inAvail, void* handle);
19 const char* bz2_retval_str(int32_t retVal);
20
21 #if defined (__cplusplus)
22
23 #endif
24
25 #endif // CMAJOR_RT_BZ2_INTERFACE_INCLUDED