Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
zlib.h File Reference
#include <linux/zconf.h>

Go to the source code of this file.

Data Structures

struct  z_stream_s
 
struct  internal_state
 

Macros

#define Z_NO_FLUSH   0
 
#define Z_PARTIAL_FLUSH   1 /* will be removed, use Z_SYNC_FLUSH instead */
 
#define Z_PACKET_FLUSH   2
 
#define Z_SYNC_FLUSH   3
 
#define Z_FULL_FLUSH   4
 
#define Z_FINISH   5
 
#define Z_BLOCK   6 /* Only for inflate at present */
 
#define Z_OK   0
 
#define Z_STREAM_END   1
 
#define Z_NEED_DICT   2
 
#define Z_ERRNO   (-1)
 
#define Z_STREAM_ERROR   (-2)
 
#define Z_DATA_ERROR   (-3)
 
#define Z_MEM_ERROR   (-4)
 
#define Z_BUF_ERROR   (-5)
 
#define Z_VERSION_ERROR   (-6)
 
#define Z_NO_COMPRESSION   0
 
#define Z_BEST_SPEED   1
 
#define Z_BEST_COMPRESSION   9
 
#define Z_DEFAULT_COMPRESSION   (-1)
 
#define Z_FILTERED   1
 
#define Z_HUFFMAN_ONLY   2
 
#define Z_DEFAULT_STRATEGY   0
 
#define Z_BINARY   0
 
#define Z_ASCII   1
 
#define Z_UNKNOWN   2
 
#define Z_DEFLATED   8
 
#define zlib_deflateInit(strm, level)
 
#define zlib_inflateInit(strm)   zlib_inflateInit2((strm), DEF_WBITS)
 

Typedefs

typedef struct z_stream_s z_stream
 
typedef z_streamz_streamp
 

Functions

int zlib_deflate_workspacesize (int windowBits, int memLevel)
 
int zlib_deflate (z_streamp strm, int flush)
 
int zlib_deflateEnd (z_streamp strm)
 
int zlib_inflate_workspacesize (void)
 
int zlib_inflate (z_streamp strm, int flush)
 
int zlib_inflateEnd (z_streamp strm)
 
int zlib_deflateReset (z_streamp strm)
 
int zlib_inflateSetDictionary (z_streamp strm, const Byte *dictionary, uInt dictLength)
 
int zlib_inflateReset (z_streamp strm)
 
int zlib_inflateIncomp (z_stream *strm)
 
int zlib_deflateInit2 (z_streamp strm, int level, int method, int windowBits, int memLevel, int strategy)
 
int zlib_inflateInit2 (z_streamp strm, int windowBits)
 
int zlib_inflate_blob (void *dst, unsigned dst_sz, const void *src, unsigned src_sz)
 

Macro Definition Documentation

#define Z_ASCII   1

Definition at line 173 of file zlib.h.

#define Z_BEST_COMPRESSION   9

Definition at line 163 of file zlib.h.

#define Z_BEST_SPEED   1

Definition at line 162 of file zlib.h.

#define Z_BINARY   0

Definition at line 172 of file zlib.h.

#define Z_BLOCK   6 /* Only for inflate at present */

Definition at line 145 of file zlib.h.

#define Z_BUF_ERROR   (-5)

Definition at line 155 of file zlib.h.

#define Z_DATA_ERROR   (-3)

Definition at line 153 of file zlib.h.

#define Z_DEFAULT_COMPRESSION   (-1)

Definition at line 164 of file zlib.h.

#define Z_DEFAULT_STRATEGY   0

Definition at line 169 of file zlib.h.

#define Z_DEFLATED   8

Definition at line 177 of file zlib.h.

#define Z_ERRNO   (-1)

Definition at line 151 of file zlib.h.

#define Z_FILTERED   1

Definition at line 167 of file zlib.h.

#define Z_FINISH   5

Definition at line 144 of file zlib.h.

#define Z_FULL_FLUSH   4

Definition at line 143 of file zlib.h.

#define Z_HUFFMAN_ONLY   2

Definition at line 168 of file zlib.h.

#define Z_MEM_ERROR   (-4)

Definition at line 154 of file zlib.h.

#define Z_NEED_DICT   2

Definition at line 150 of file zlib.h.

#define Z_NO_COMPRESSION   0

Definition at line 161 of file zlib.h.

#define Z_NO_FLUSH   0

Definition at line 139 of file zlib.h.

#define Z_OK   0

Definition at line 148 of file zlib.h.

#define Z_PACKET_FLUSH   2

Definition at line 141 of file zlib.h.

#define Z_PARTIAL_FLUSH   1 /* will be removed, use Z_SYNC_FLUSH instead */

Definition at line 140 of file zlib.h.

#define Z_STREAM_END   1

Definition at line 149 of file zlib.h.

#define Z_STREAM_ERROR   (-2)

Definition at line 152 of file zlib.h.

#define Z_SYNC_FLUSH   3

Definition at line 142 of file zlib.h.

#define Z_UNKNOWN   2

Definition at line 174 of file zlib.h.

#define Z_VERSION_ERROR   (-6)

Definition at line 156 of file zlib.h.

#define zlib_deflateInit (   strm,
  level 
)
Value:

Definition at line 692 of file zlib.h.

#define zlib_inflateInit (   strm)    zlib_inflateInit2((strm), DEF_WBITS)

Definition at line 695 of file zlib.h.

Typedef Documentation

typedef z_stream* z_streamp

Definition at line 103 of file zlib.h.

Function Documentation

int zlib_deflate ( z_streamp  strm,
int  flush 
)

Definition at line 412 of file deflate.c.

int zlib_deflate_workspacesize ( int  windowBits,
int  memLevel 
)

Definition at line 1266 of file deflate.c.

int zlib_deflateEnd ( z_streamp  strm)

Definition at line 550 of file deflate.c.

int zlib_deflateInit2 ( z_streamp  strm,
int  level,
int  method,
int  windowBits,
int  memLevel,
int  strategy 
)

Definition at line 167 of file deflate.c.

int zlib_deflateReset ( z_streamp  strm)

Definition at line 299 of file deflate.c.

int zlib_inflate ( z_streamp  strm,
int  flush 
)

Definition at line 332 of file inflate.c.

int zlib_inflate_blob ( void dst,
unsigned  dst_sz,
const void src,
unsigned  src_sz 
)
int zlib_inflate_workspacesize ( void  )

Definition at line 18 of file inflate.c.

int zlib_inflateEnd ( z_streamp  strm)

Definition at line 757 of file inflate.c.

int zlib_inflateIncomp ( z_stream strm)

Definition at line 889 of file inflate.c.

int zlib_inflateInit2 ( z_streamp  strm,
int  windowBits 
)

Definition at line 63 of file inflate.c.

int zlib_inflateReset ( z_streamp  strm)

Definition at line 23 of file inflate.c.

int zlib_inflateSetDictionary ( z_streamp  strm,
const Byte dictionary,
uInt  dictLength 
)