revert between 56095 -> 55830 in arch
[AROS.git] / workbench / devs / diskimage / include / libraries / bz2.h
blobd71298440f94659ecf6faea577c7107533f34ce4
1 #ifndef LIBRARIES_BZ2_H
2 #define LIBRARIES_BZ2_H
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
8 #define BZ_RUN 0
9 #define BZ_FLUSH 1
10 #define BZ_FINISH 2
12 #define BZ_OK 0
13 #define BZ_RUN_OK 1
14 #define BZ_FLUSH_OK 2
15 #define BZ_FINISH_OK 3
16 #define BZ_STREAM_END 4
17 #define BZ_SEQUENCE_ERROR (-1)
18 #define BZ_PARAM_ERROR (-2)
19 #define BZ_MEM_ERROR (-3)
20 #define BZ_DATA_ERROR (-4)
21 #define BZ_DATA_ERROR_MAGIC (-5)
22 #define BZ_IO_ERROR (-6)
23 #define BZ_UNEXPECTED_EOF (-7)
24 #define BZ_OUTBUFF_FULL (-8)
25 #define BZ_CONFIG_ERROR (-9)
27 typedef
28 struct {
29 char *next_in;
30 unsigned int avail_in;
31 unsigned int total_in_lo32;
32 unsigned int total_in_hi32;
34 char *next_out;
35 unsigned int avail_out;
36 unsigned int total_out_lo32;
37 unsigned int total_out_hi32;
39 void *state;
41 void *(*bzalloc)(void *,int,int);
42 void (*bzfree)(void *,void *);
43 void *opaque;
45 bz_stream;
47 #ifdef __cplusplus
49 #endif
51 #endif