GPS4Palm

Source Code Documentation


SysZLib.h File Reference

#include "zconf.h"

Include dependency graph for SysZLib.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  z_stream_s

Defines

#define ZLIB_VERSION   "1.1.3"
#define PALMOS
#define Z_NO_FLUSH   0
#define Z_PARTIAL_FLUSH   1
#define Z_SYNC_FLUSH   2
#define Z_FULL_FLUSH   3
#define Z_FINISH   4
#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 Z_NULL   0
#define ZLSetup
#define ZLTeardown
#define deflateInit2(strm, level, method, windowBits, memLevel, strategy)
#define inflateInit2(strm, windowBits)   ZLibinflateinit2((ZLibRef), (strm), (windowBits), ZLIB_VERSION, sizeof(z_stream))
#define deflateInit(a, b)   ZLibdeflateinit2((ZLibRef), a, b, Z_DEFLATED, 13, 6, Z_DEFAULT_STRATEGY, ZLIB_VERSION, sizeof(z_stream))
#define deflateInit_(a, b, c, d)   ZLibdeflateinit2((ZLibRef), a, b, Z_DEFLATED, 13, 6, Z_DEFAULT_STRATEGY, c, d)
#define inflateInit(a)   ZLibinflateinit2((ZLibRef), a, 15, ZLIB_VERSION, sizeof(z_stream))
#define inflateInit_(a, b, c)   ZLibinflateinit2((ZLibRef), a, 15, b, c)
#define inflate(x, y)   ZLibinflate(ZLibRef,x,y)
#define deflate(x, y)   ZLibdeflate(ZLibRef,x,y)
#define inflateEnd(x)   ZLibinflateend(ZLibRef,x)
#define deflateEnd(x)   ZLibdeflateend(ZLibRef,x)
#define crc32(a, b, c)   ZLibcrc32(ZLibRef,a,b,c)
#define adler32(a, b, c)   ZLibadler32(ZLibRef,a,b,c)

Typedefs

typedef voidpf alloc_func OF ((voidpf opaque, uInt items, uInt size))
typedef void free_func OF ((voidpf opaque, voidpf address))
typedef z_stream_s z_stream
typedef z_stream FAR * z_streamp

Functions

Err ZLibOpen (UInt refNum) SYS_TRAP(sysLibTrapOpen)
Err ZLibClose (UInt refNum, UIntPtr numappsP) SYS_TRAP(sysLibTrapClose)
Err ZLibSleep (UInt refNum) SYS_TRAP(sysLibTrapSleep)
Err ZLibWake (UInt refNum) SYS_TRAP(sysLibTrapWake)
Err ZLibdeflateinit2 (UInt refnum, z_streamp strm, int level, int method, int windowBits, int memLevel, int strategy, const char *version, int stream_size) SYS_TRAP(sysLibTrapCustom)
Err ZLibdeflate (UInt refnum, z_streamp strm, int flush) SYS_TRAP(sysLibTrapCustom+1)
Err ZLibdeflateend (UInt refnum, z_streamp strm) SYS_TRAP(sysLibTrapCustom+2)
Err ZLibinflateinit2 (UInt refnum, z_streamp strm, int windowBits, const char *version, int stream_size) SYS_TRAP(sysLibTrapCustom+3)
Err ZLibinflate (UInt refnum, z_streamp strm, int flush) SYS_TRAP(sysLibTrapCustom+4)
Err ZLibinflateend (UInt refnum, z_streamp strm) SYS_TRAP(sysLibTrapCustom+5)
uLong ZLibcrc32 (UInt refnum, uLong crc, const Bytef *buf, uInt len) SYS_TRAP(sysLibTrapCustom+6)
uLong ZLibadler32 (UInt refnum, uLong adler, const Bytef *buf, uInt len) SYS_TRAP(sysLibTrapCustom+7)
Err ZLibcompress2 (UInt refnum, Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen, int level) SYS_TRAP(sysLibTrapCustom+8)
Err ZLibuncompress (UInt refnum, Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen) SYS_TRAP(sysLibTrapCustom+9)

Variables

UInt ZLibRef = 0


Define Documentation

#define adler32 a,
b,
 )     ZLibadler32(ZLibRef,a,b,c)
 

Definition at line 205 of file SysZLib.h.

#define crc32 a,
b,
 )     ZLibcrc32(ZLibRef,a,b,c)
 

Definition at line 204 of file SysZLib.h.

#define deflate x,
 )     ZLibdeflate(ZLibRef,x,y)
 

Definition at line 201 of file SysZLib.h.

#define deflateEnd  )     ZLibdeflateend(ZLibRef,x)
 

Definition at line 203 of file SysZLib.h.

#define deflateInit a,
b   )     ZLibdeflateinit2((ZLibRef), a, b, Z_DEFLATED, 13, 6, Z_DEFAULT_STRATEGY, ZLIB_VERSION, sizeof(z_stream))
 

Definition at line 194 of file SysZLib.h.

#define deflateInit2 strm,
level,
method,
windowBits,
memLevel,
strategy   ) 
 

Value:

ZLibdeflateinit2((ZLibRef),(strm),(level),(method),(windowBits),(memLevel),\
                      (strategy), ZLIB_VERSION, sizeof(z_stream))

Definition at line 187 of file SysZLib.h.

#define deflateInit_ a,
b,
c,
 )     ZLibdeflateinit2((ZLibRef), a, b, Z_DEFLATED, 13, 6, Z_DEFAULT_STRATEGY, c, d)
 

Definition at line 195 of file SysZLib.h.

#define inflate x,
 )     ZLibinflate(ZLibRef,x,y)
 

Definition at line 200 of file SysZLib.h.

#define inflateEnd  )     ZLibinflateend(ZLibRef,x)
 

Definition at line 202 of file SysZLib.h.

#define inflateInit a   )     ZLibinflateinit2((ZLibRef), a, 15, ZLIB_VERSION, sizeof(z_stream))
 

Definition at line 197 of file SysZLib.h.

#define inflateInit2 strm,
windowBits   )     ZLibinflateinit2((ZLibRef), (strm), (windowBits), ZLIB_VERSION, sizeof(z_stream))
 

Definition at line 190 of file SysZLib.h.

#define inflateInit_ a,
b,
 )     ZLibinflateinit2((ZLibRef), a, 15, b, c)
 

Definition at line 198 of file SysZLib.h.

#define PALMOS
 

Definition at line 56 of file SysZLib.h.

#define Z_ASCII   1
 

Definition at line 91 of file SysZLib.h.

#define Z_BEST_COMPRESSION   9
 

Definition at line 81 of file SysZLib.h.

#define Z_BEST_SPEED   1
 

Definition at line 80 of file SysZLib.h.

#define Z_BINARY   0
 

Definition at line 90 of file SysZLib.h.

#define Z_BUF_ERROR   (-5)
 

Definition at line 73 of file SysZLib.h.

#define Z_DATA_ERROR   (-3)
 

Definition at line 71 of file SysZLib.h.

#define Z_DEFAULT_COMPRESSION   (-1)
 

Definition at line 82 of file SysZLib.h.

#define Z_DEFAULT_STRATEGY   0
 

Definition at line 87 of file SysZLib.h.

#define Z_DEFLATED   8
 

Definition at line 95 of file SysZLib.h.

#define Z_ERRNO   (-1)
 

Definition at line 69 of file SysZLib.h.

#define Z_FILTERED   1
 

Definition at line 85 of file SysZLib.h.

#define Z_FINISH   4
 

Definition at line 64 of file SysZLib.h.

#define Z_FULL_FLUSH   3
 

Definition at line 63 of file SysZLib.h.

#define Z_HUFFMAN_ONLY   2
 

Definition at line 86 of file SysZLib.h.

#define Z_MEM_ERROR   (-4)
 

Definition at line 72 of file SysZLib.h.

#define Z_NEED_DICT   2
 

Definition at line 68 of file SysZLib.h.

#define Z_NO_COMPRESSION   0
 

Definition at line 79 of file SysZLib.h.

#define Z_NO_FLUSH   0
 

Definition at line 60 of file SysZLib.h.

#define Z_NULL   0
 

Definition at line 98 of file SysZLib.h.

#define Z_OK   0
 

Definition at line 66 of file SysZLib.h.

#define Z_PARTIAL_FLUSH   1
 

Definition at line 61 of file SysZLib.h.

#define Z_STREAM_END   1
 

Definition at line 67 of file SysZLib.h.

#define Z_STREAM_ERROR   (-2)
 

Definition at line 70 of file SysZLib.h.

#define Z_SYNC_FLUSH   2
 

Definition at line 62 of file SysZLib.h.

#define Z_UNKNOWN   2
 

Definition at line 92 of file SysZLib.h.

#define Z_VERSION_ERROR   (-6)
 

Definition at line 74 of file SysZLib.h.

#define ZLIB_VERSION   "1.1.3"
 

Definition at line 54 of file SysZLib.h.

#define ZLSetup
 

Value:

!ZLibRef && SysLibFind("Z.lib", &ZLibRef) && SysLibLoad('libr', 'ZLib', &ZLibRef) \
                   && SysLibFind("Z.lib", &ZLibRef) && ZLibOpen(ZLibRef) && (ErrFatalDisplay("No ZLib"),0)

Definition at line 176 of file SysZLib.h.

Referenced by doPNG().

#define ZLTeardown
 

Value:

if(ZLibRef){\
                      UInt zltmp;\
                      ZLibClose(ZLibRef,&zltmp);\
                      if(!zltmp)\
                        SysLibRemove(ZLibRef);\
                      ZLibRef = 0;}

Definition at line 179 of file SysZLib.h.

Referenced by doPNG().


Typedef Documentation

typedef void free_func OF((voidpf opaque, voidpf address))
 

Definition at line 101 of file SysZLib.h.

typedef voidpf alloc_func OF((voidpf opaque, uInt items, uInt size))
 

Definition at line 100 of file SysZLib.h.

typedef struct z_stream_s z_stream
 

typedef z_stream FAR* z_streamp
 

Definition at line 126 of file SysZLib.h.


Function Documentation

uLong ZLibadler32 UInt  refnum,
uLong  adler,
const Bytef buf,
uInt  len
 

Err ZLibClose UInt  refNum,
UIntPtr  numappsP
 

Err ZLibcompress2 UInt  refnum,
Bytef dest,
uLongf destLen,
const Bytef source,
uLong  sourceLen,
int  level
 

uLong ZLibcrc32 UInt  refnum,
uLong  crc,
const Bytef buf,
uInt  len
 

Err ZLibdeflate UInt  refnum,
z_streamp  strm,
int  flush
 

Err ZLibdeflateend UInt  refnum,
z_streamp  strm
 

Err ZLibdeflateinit2 UInt  refnum,
z_streamp  strm,
int  level,
int  method,
int  windowBits,
int  memLevel,
int  strategy,
const char *  version,
int  stream_size
 

Err ZLibinflate UInt  refnum,
z_streamp  strm,
int  flush
 

Err ZLibinflateend UInt  refnum,
z_streamp  strm
 

Err ZLibinflateinit2 UInt  refnum,
z_streamp  strm,
int  windowBits,
const char *  version,
int  stream_size
 

Err ZLibOpen UInt  refNum  ) 
 

Err ZLibSleep UInt  refNum  ) 
 

Err ZLibuncompress UInt  refnum,
Bytef dest,
uLongf destLen,
const Bytef source,
uLong  sourceLen
 

Err ZLibWake UInt  refNum  ) 
 


Variable Documentation

UInt ZLibRef = 0
 

Definition at line 170 of file SysZLib.h.


Created: Mon, 08 Oct 2007 22:33:16 +0200
Copyright ©2004 M. Prinke