ioapi.h File Reference

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

Go to the source code of this file.

Data Structures

struct  zlib_filefunc_def_s

Defines

#define ZLIB_FILEFUNC_SEEK_CUR   (1)
#define ZLIB_FILEFUNC_SEEK_END   (2)
#define ZLIB_FILEFUNC_SEEK_SET   (0)
#define ZLIB_FILEFUNC_MODE_READ   (1)
#define ZLIB_FILEFUNC_MODE_WRITE   (2)
#define ZLIB_FILEFUNC_MODE_READWRITEFILTER   (3)
#define ZLIB_FILEFUNC_MODE_EXISTING   (4)
#define ZLIB_FILEFUNC_MODE_CREATE   (8)
#define ZREAD(filefunc, filestream, buf, size)   ((*((filefunc).zread_file))((filefunc).opaque,filestream,buf,size))
#define ZWRITE(filefunc, filestream, buf, size)   ((*((filefunc).zwrite_file))((filefunc).opaque,filestream,buf,size))
#define ZTELL(filefunc, filestream)   ((*((filefunc).ztell_file))((filefunc).opaque,filestream))
#define ZSEEK(filefunc, filestream, pos, mode)   ((*((filefunc).zseek_file))((filefunc).opaque,filestream,pos,mode))
#define ZCLOSE(filefunc, filestream)   ((*((filefunc).zclose_file))((filefunc).opaque,filestream))
#define ZERROR(filefunc, filestream)   ((*((filefunc).zerror_file))((filefunc).opaque,filestream))

Typedefs

typedef const char * filename
typedef const char int mode
typedef voidpf stream
typedef voidpf void * buf
typedef voidpf void uLong size
typedef voidpf uLong offset
typedef voidpf uLong int origin
typedef struct zlib_filefunc_def_s zlib_filefunc_def

Functions

typedef voidpf (ZCALLBACK *open_file_func) OF((voidpf opaque
typedef uLong (ZCALLBACK *read_file_func) OF((voidpf opaque
typedef long (ZCALLBACK *tell_file_func) OF((voidpf opaque
typedef int (ZCALLBACK *close_file_func) OF((voidpf opaque
void fill_fopen_filefunc OF ((zlib_filefunc_def *pzlib_filefunc_def))

Define Documentation

#define ZCLOSE ( filefunc,
filestream   )     ((*((filefunc).zclose_file))((filefunc).opaque,filestream))

Definition at line 66 of file ioapi.h.

Referenced by unzClose(), and unzOpen2().

#define ZERROR ( filefunc,
filestream   )     ((*((filefunc).zerror_file))((filefunc).opaque,filestream))

Definition at line 67 of file ioapi.h.

Referenced by unzlocal_getByte().

#define ZLIB_FILEFUNC_MODE_CREATE   (8)

Definition at line 22 of file ioapi.h.

Referenced by fopen_file_func().

#define ZLIB_FILEFUNC_MODE_EXISTING   (4)

Definition at line 21 of file ioapi.h.

Referenced by fopen_file_func(), and unzOpen2().

#define ZLIB_FILEFUNC_MODE_READ   (1)

Definition at line 17 of file ioapi.h.

Referenced by fopen_file_func(), and unzOpen2().

#define ZLIB_FILEFUNC_MODE_READWRITEFILTER   (3)

Definition at line 19 of file ioapi.h.

Referenced by fopen_file_func().

#define ZLIB_FILEFUNC_MODE_WRITE   (2)

Definition at line 18 of file ioapi.h.

#define ZLIB_FILEFUNC_SEEK_CUR   (1)

Definition at line 13 of file ioapi.h.

Referenced by fseek_file_func(), and unzlocal_GetCurrentFileInfoInternal().

#define ZLIB_FILEFUNC_SEEK_END   (2)

Definition at line 14 of file ioapi.h.

Referenced by fseek_file_func(), and unzlocal_SearchCentralDir().

#define ZLIB_FILEFUNC_SEEK_SET   (0)
#define ZREAD ( filefunc,
filestream,
buf,
size   )     ((*((filefunc).zread_file))((filefunc).opaque,filestream,buf,size))
#define ZSEEK ( filefunc,
filestream,
pos,
mode   )     ((*((filefunc).zseek_file))((filefunc).opaque,filestream,pos,mode))
#define ZTELL ( filefunc,
filestream   )     ((*((filefunc).ztell_file))((filefunc).opaque,filestream))

Definition at line 64 of file ioapi.h.

Referenced by unzlocal_SearchCentralDir().

#define ZWRITE ( filefunc,
filestream,
buf,
size   )     ((*((filefunc).zwrite_file))((filefunc).opaque,filestream,buf,size))

Definition at line 63 of file ioapi.h.


Typedef Documentation

typedef voidpf const void * buf

Definition at line 39 of file ioapi.h.

typedef const char* filename

Definition at line 38 of file ioapi.h.

typedef const char int mode

Definition at line 38 of file ioapi.h.

typedef voidpf uLong offset

Definition at line 42 of file ioapi.h.

typedef voidpf uLong int origin

Definition at line 42 of file ioapi.h.

typedef voidpf const void uLong size

Definition at line 39 of file ioapi.h.

typedef voidpf stream

Definition at line 39 of file ioapi.h.


Function Documentation

typedef int ( ZCALLBACK *  close_file_func  ) 
typedef long ( ZCALLBACK *  tell_file_func  ) 

Referenced by CIN_OGM_Init(), and Sys_Sleep().

void fill_fopen_filefunc OF ( (zlib_filefunc_def *pzlib_filefunc_def)   ) 
typedef uLong ( ZCALLBACK *  read_file_func  ) 
typedef voidpf ( ZCALLBACK *  open_file_func  ) 

Referenced by unzOpenCurrentFile3().


Generated by  doxygen 1.6.2