Target directory must be created before copying.
[AROS.git] / compiler / include / libraries / bz2.h
blob6103f557d1b3afc06fc64a1b03a35123e805a5e0
1 /*
2 Copyright © 2012, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #ifndef _BZ2_H
7 #define _BZ2_H
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
13 #define BZ_RUN 0
14 #define BZ_FLUSH 1
15 #define BZ_FINISH 2
17 #define BZ_OK 0
18 #define BZ_RUN_OK 1
19 #define BZ_FLUSH_OK 2
20 #define BZ_FINISH_OK 3
21 #define BZ_STREAM_END 4
22 #define BZ_SEQUENCE_ERROR (-1)
23 #define BZ_PARAM_ERROR (-2)
24 #define BZ_MEM_ERROR (-3)
25 #define BZ_DATA_ERROR (-4)
26 #define BZ_DATA_ERROR_MAGIC (-5)
27 #define BZ_IO_ERROR (-6)
28 #define BZ_UNEXPECTED_EOF (-7)
29 #define BZ_OUTBUFF_FULL (-8)
30 #define BZ_CONFIG_ERROR (-9)
32 typedef
33 struct {
34 char *next_in;
35 unsigned int avail_in;
36 unsigned int total_in_lo32;
37 unsigned int total_in_hi32;
39 char *next_out;
40 unsigned int avail_out;
41 unsigned int total_out_lo32;
42 unsigned int total_out_hi32;
44 void *state;
46 void *(*bzalloc)(void *,int,int);
47 void (*bzfree)(void *,void *);
48 void *opaque;
50 bz_stream;
53 #ifdef __cplusplus
55 #endif
57 #endif