blob: 5c693f2a7a7d2757871bd2ed0f4de267b175f97b [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
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 ***
Ben Cheng654325d2012-03-07 21:13:49 -080010 *** 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 ***
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080017 ****************************************************************************
18 ****************************************************************************/
19#ifndef _ZLIB_H
20#define _ZLIB_H
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080021#include <linux/zconf.h>
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080022struct internal_state;
Ben Cheng654325d2012-03-07 21:13:49 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080024typedef struct z_stream_s {
25 Byte *next_in;
26 uInt avail_in;
27 uLong total_in;
Ben Cheng654325d2012-03-07 21:13:49 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080029 Byte *next_out;
30 uInt avail_out;
31 uLong total_out;
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080032 char *msg;
Ben Cheng654325d2012-03-07 21:13:49 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080034 struct internal_state *state;
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080035 void *workspace;
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080036 int data_type;
37 uLong adler;
Ben Cheng654325d2012-03-07 21:13:49 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080039 uLong reserved;
40} z_stream;
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080041typedef z_stream *z_streamp;
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080042#define Z_NO_FLUSH 0
Ben Cheng654325d2012-03-07 21:13:49 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080044#define Z_PARTIAL_FLUSH 1
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080045#define Z_PACKET_FLUSH 2
46#define Z_SYNC_FLUSH 3
47#define Z_FULL_FLUSH 4
Ben Cheng654325d2012-03-07 21:13:49 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080049#define Z_FINISH 5
Elliott Hughesc95eb572013-01-29 18:15:55 -080050#define Z_BLOCK 6
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080051#define Z_OK 0
52#define Z_STREAM_END 1
Ben Cheng654325d2012-03-07 21:13:49 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080054#define Z_NEED_DICT 2
55#define Z_ERRNO (-1)
56#define Z_STREAM_ERROR (-2)
57#define Z_DATA_ERROR (-3)
Ben Cheng654325d2012-03-07 21:13:49 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080059#define Z_MEM_ERROR (-4)
60#define Z_BUF_ERROR (-5)
61#define Z_VERSION_ERROR (-6)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080062#define Z_NO_COMPRESSION 0
Ben Cheng654325d2012-03-07 21:13:49 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080064#define Z_BEST_SPEED 1
65#define Z_BEST_COMPRESSION 9
66#define Z_DEFAULT_COMPRESSION (-1)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080067#define Z_FILTERED 1
Ben Cheng654325d2012-03-07 21:13:49 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080069#define Z_HUFFMAN_ONLY 2
70#define Z_DEFAULT_STRATEGY 0
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080071#define Z_BINARY 0
72#define Z_ASCII 1
Ben Cheng654325d2012-03-07 21:13:49 -080073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080074#define Z_UNKNOWN 2
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080075#define Z_DEFLATED 8
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080076#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)
Ben Cheng654325d2012-03-07 21:13:49 -080078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080079#if !defined(_Z_UTIL_H) && !defined(NO_DUMMY_DECL)
80 struct internal_state {int dummy;};
81#endif
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080082#endif
Ben Cheng654325d2012-03-07 21:13:49 -080083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */