libdigidocpp
ioapi.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include "zlib.h"
Include dependency graph for ioapi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  zlib_filefunc_def_s
struct  zlib_filefunc64_def_s
struct  zlib_filefunc64_32_def_s

Macros

#define __USE_FILE_OFFSET64
#define __USE_LARGEFILE64
#define _LARGEFILE64_SOURCE
#define _FILE_OFFSET_BIT   64
#define MAXU32   0xffffffff
#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 ZCALLBACK
#define ZREAD64(filefunc, filestream, buf, size)   ((*((filefunc).zfile_func64.zread_file)) ((filefunc).zfile_func64.opaque,filestream,buf,size))
#define ZWRITE64(filefunc, filestream, buf, size)   ((*((filefunc).zfile_func64.zwrite_file)) ((filefunc).zfile_func64.opaque,filestream,buf,size))
#define ZCLOSE64(filefunc, filestream)   ((*((filefunc).zfile_func64.zclose_file)) ((filefunc).zfile_func64.opaque,filestream))
#define ZERROR64(filefunc, filestream)   ((*((filefunc).zfile_func64.zerror_file)) ((filefunc).zfile_func64.opaque,filestream))
#define ZOPEN64(filefunc, filename, mode)   (call_zopen64((&(filefunc)),(filename),(mode)))
#define ZTELL64(filefunc, filestream)   (call_ztell64((&(filefunc)),(filestream)))
#define ZSEEK64(filefunc, filestream, pos, mode)   (call_zseek64((&(filefunc)),(filestream),(pos),(mode)))

Typedefs

typedef unsigned long long int ZPOS64_T
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
typedef struct
zlib_filefunc64_def_s 
zlib_filefunc64_def
typedef struct
zlib_filefunc64_32_def_s 
zlib_filefunc64_32_def

Functions

typedef voidpf (ZCALLBACK *open_file_func) OF((voidpf opaque
typedef uLong (ZCALLBACK *read_file_func) OF((voidpf opaque
typedef int (ZCALLBACK *close_file_func) OF((voidpf opaque
typedef long (ZCALLBACK *tell_file_func) OF((voidpf opaque
typedef ZPOS64_T (ZCALLBACK *tell64_file_func) OF((voidpf opaque
void fill_fopen64_filefunc OF ((zlib_filefunc64_def *pzlib_filefunc_def))
void fill_fopen_filefunc OF ((zlib_filefunc_def *pzlib_filefunc_def))
voidpf call_zopen64 OF ((const zlib_filefunc64_32_def *pfilefunc, const void *filename, int mode))
long call_zseek64 OF ((const zlib_filefunc64_32_def *pfilefunc, voidpf filestream, ZPOS64_T offset, int origin))
ZPOS64_T call_ztell64 OF ((const zlib_filefunc64_32_def *pfilefunc, voidpf filestream))
void fill_zlib_filefunc64_32_def_from_filefunc32 (zlib_filefunc64_32_def *p_filefunc64_32, const zlib_filefunc_def *p_filefunc32)

Macro Definition Documentation

#define __USE_FILE_OFFSET64

Definition at line 30 of file ioapi.h.

#define __USE_LARGEFILE64

Definition at line 33 of file ioapi.h.

#define _FILE_OFFSET_BIT   64

Definition at line 39 of file ioapi.h.

#define _LARGEFILE64_SOURCE

Definition at line 36 of file ioapi.h.

#define MAXU32   0xffffffff

Definition at line 95 of file ioapi.h.

Referenced by call_ztell64(), and unz64local_GetCurrentFileInfoInternal().

#define ZCALLBACK

Definition at line 128 of file ioapi.h.

#define ZCLOSE64 (   filefunc,
  filestream 
)    ((*((filefunc).zfile_func64.zclose_file)) ((filefunc).zfile_func64.opaque,filestream))

Definition at line 191 of file ioapi.h.

Referenced by LoadCentralDirectoryRecord(), unzClose(), unzOpenInternal(), zipClose(), and zipOpen3().

#define ZERROR64 (   filefunc,
  filestream 
)    ((*((filefunc).zfile_func64.zerror_file)) ((filefunc).zfile_func64.opaque,filestream))

Definition at line 192 of file ioapi.h.

Referenced by unz64local_getByte(), and zip64local_getByte().

#define ZLIB_FILEFUNC_MODE_CREATE   (8)

Definition at line 121 of file ioapi.h.

Referenced by fopen64_file_func(), fopen_file_func(), win32_translate_open_mode(), and zipOpen3().

#define ZLIB_FILEFUNC_MODE_EXISTING   (4)
#define ZLIB_FILEFUNC_MODE_READ   (1)
#define ZLIB_FILEFUNC_MODE_READWRITEFILTER   (3)

Definition at line 118 of file ioapi.h.

Referenced by fopen64_file_func(), fopen_file_func(), and win32_translate_open_mode().

#define ZLIB_FILEFUNC_MODE_WRITE   (2)

Definition at line 117 of file ioapi.h.

Referenced by zipOpen3().

#define ZLIB_FILEFUNC_SEEK_CUR   (1)
#define ZOPEN64 (   filefunc,
  filename,
  mode 
)    (call_zopen64((&(filefunc)),(filename),(mode)))

Definition at line 200 of file ioapi.h.

Referenced by unzOpenInternal(), and zipOpen3().

#define ZREAD64 (   filefunc,
  filestream,
  buf,
  size 
)    ((*((filefunc).zfile_func64.zread_file)) ((filefunc).zfile_func64.opaque,filestream,buf,size))
#define ZWRITE64 (   filefunc,
  filestream,
  buf,
  size 
)    ((*((filefunc).zfile_func64.zwrite_file)) ((filefunc).zfile_func64.opaque,filestream,buf,size))

Typedef Documentation

typedef voidpf const void * buf

Definition at line 136 of file ioapi.h.

typedef const void * filename

Definition at line 135 of file ioapi.h.

typedef const void int mode

Definition at line 135 of file ioapi.h.

Definition at line 142 of file ioapi.h.

Definition at line 142 of file ioapi.h.

typedef voidpf const void uLong size

Definition at line 136 of file ioapi.h.

typedef voidpf stream

Definition at line 136 of file ioapi.h.

typedef unsigned long long int ZPOS64_T

Definition at line 100 of file ioapi.h.

Function Documentation

typedef long ( ZCALLBACK tell_file_func)

Referenced by digidoc::Document::calcDigest(), and win32_tell_file_func().

Here is the caller graph for this function:

void fill_win32_filefunc64W OF ( (zlib_filefunc64_def *pzlib_filefunc_def)  )
void fill_fopen_filefunc OF ( (zlib_filefunc_def *pzlib_filefunc_def)  )
voidpf call_zopen64 OF ( (const zlib_filefunc64_32_def *pfilefunc, const void *filename, int mode )
long call_zseek64 OF ( (const zlib_filefunc64_32_def *pfilefunc, voidpf filestream, ZPOS64_T offset, int origin )
ZPOS64_T call_ztell64 OF ( (const zlib_filefunc64_32_def *pfilefunc, voidpf filestream)  )
typedef voidpf ( ZCALLBACK open_file_func)

Referenced by unzOpenCurrentFile3(), win32_build_iowin(), and zipOpenNewFileInZip4_64().

Here is the caller graph for this function:

typedef ZPOS64_T ( ZCALLBACK tell64_file_func)