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 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef _ZLIB_H 20 #define _ZLIB_H 21 #include <linux/zconf.h> 22 struct internal_state; 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 typedef struct z_stream_s { 25 Byte *next_in; 26 uInt avail_in; 27 uLong total_in; 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 Byte *next_out; 30 uInt avail_out; 31 uLong total_out; 32 char *msg; 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 struct internal_state *state; 35 void *workspace; 36 int data_type; 37 uLong adler; 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 uLong reserved; 40 } z_stream; 41 typedef z_stream *z_streamp; 42 #define Z_NO_FLUSH 0 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 #define Z_PARTIAL_FLUSH 1 45 #define Z_PACKET_FLUSH 2 46 #define Z_SYNC_FLUSH 3 47 #define Z_FULL_FLUSH 4 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 #define Z_FINISH 5 50 #define Z_BLOCK 6 51 #define Z_OK 0 52 #define Z_STREAM_END 1 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 #define Z_NEED_DICT 2 55 #define Z_ERRNO (-1) 56 #define Z_STREAM_ERROR (-2) 57 #define Z_DATA_ERROR (-3) 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 #define Z_MEM_ERROR (-4) 60 #define Z_BUF_ERROR (-5) 61 #define Z_VERSION_ERROR (-6) 62 #define Z_NO_COMPRESSION 0 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 #define Z_BEST_SPEED 1 65 #define Z_BEST_COMPRESSION 9 66 #define Z_DEFAULT_COMPRESSION (-1) 67 #define Z_FILTERED 1 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 #define Z_HUFFMAN_ONLY 2 70 #define Z_DEFAULT_STRATEGY 0 71 #define Z_BINARY 0 72 #define Z_ASCII 1 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 #define Z_UNKNOWN 2 75 #define Z_DEFLATED 8 76 #define zlib_deflateInit(strm, level) zlib_deflateInit2((strm), (level), Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY) 77 #define zlib_inflateInit(strm) zlib_inflateInit2((strm), DEF_WBITS) 78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 #if !defined(_Z_UTIL_H) && !defined(NO_DUMMY_DECL) 80 struct internal_state {int dummy;}; 81 #endif 82 #endif 83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84