OSDN Git Service

Check in released NDK version r4.
[android-x86/prebuilt.git] / ndk / android-ndk-r4 / linux / platforms / android-3 / arch-arm / usr / include / linux / zlib.h
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ****************************************************************************
11  ****************************************************************************/
12 #ifndef _ZLIB_H
13 #define _ZLIB_H
14
15 #include <linux/zconf.h>
16
17 struct internal_state;
18
19 typedef struct z_stream_s {
20  Byte *next_in;
21  uInt avail_in;
22  uLong total_in;
23
24  Byte *next_out;
25  uInt avail_out;
26  uLong total_out;
27
28  char *msg;
29  struct internal_state *state;
30
31  void *workspace;
32
33  int data_type;
34  uLong adler;
35  uLong reserved;
36 } z_stream;
37
38 typedef z_stream *z_streamp;
39
40 #define Z_NO_FLUSH 0
41 #define Z_PARTIAL_FLUSH 1  
42 #define Z_PACKET_FLUSH 2
43 #define Z_SYNC_FLUSH 3
44 #define Z_FULL_FLUSH 4
45 #define Z_FINISH 5
46 #define Z_BLOCK 6  
47
48 #define Z_OK 0
49 #define Z_STREAM_END 1
50 #define Z_NEED_DICT 2
51 #define Z_ERRNO (-1)
52 #define Z_STREAM_ERROR (-2)
53 #define Z_DATA_ERROR (-3)
54 #define Z_MEM_ERROR (-4)
55 #define Z_BUF_ERROR (-5)
56 #define Z_VERSION_ERROR (-6)
57
58 #define Z_NO_COMPRESSION 0
59 #define Z_BEST_SPEED 1
60 #define Z_BEST_COMPRESSION 9
61 #define Z_DEFAULT_COMPRESSION (-1)
62
63 #define Z_FILTERED 1
64 #define Z_HUFFMAN_ONLY 2
65 #define Z_DEFAULT_STRATEGY 0
66
67 #define Z_BINARY 0
68 #define Z_ASCII 1
69 #define Z_UNKNOWN 2
70
71 #define Z_DEFLATED 8
72
73 #define zlib_deflateInit(strm, level)   zlib_deflateInit2((strm), (level), Z_DEFLATED, MAX_WBITS,   DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY)
74 #define zlib_inflateInit(strm)   zlib_inflateInit2((strm), DEF_WBITS)
75
76 #if !defined(_Z_UTIL_H) && !defined(NO_DUMMY_DECL)
77  struct internal_state {int dummy;};
78 #endif
79
80 #endif