ckb-next  v0.2.8 at branch master
ckb-next driver for corsair devices
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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.

Data Structures

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 OF   _Z_OF
 
#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 ZFAKECLOSE64(filefunc, filestream)   ((*((filefunc).zfile_func64.zfakeclose_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 voidpf open_file_func _Z_OF ((voidpf opaque, voidpf file, int mode))
 Addition for GDAL : START. More...
 
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

void fill_qiodevice64_filefunc _Z_OF ((zlib_filefunc64_def *pzlib_filefunc_def))
 
void fill_qiodevice_filefunc _Z_OF ((zlib_filefunc_def *pzlib_filefunc_def))
 
voidpf call_zopen64 _Z_OF ((const zlib_filefunc64_32_def *pfilefunc, voidpf file, int mode))
 
int call_zseek64 _Z_OF ((const zlib_filefunc64_32_def *pfilefunc, voidpf filestream, ZPOS64_T offset, int origin))
 
ZPOS64_T call_ztell64 _Z_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)
 

Data Structure Documentation

struct zlib_filefunc_def_s

Definition at line 143 of file ioapi.h.

+ Collaboration diagram for zlib_filefunc_def_s:
Data Fields
voidpf opaque
close_file_func zclose_file
testerror_file_func zerror_file
open_file_func zopen_file
read_file_func zread_file
seek_file_func zseek_file
tell_file_func ztell_file
write_file_func zwrite_file
struct zlib_filefunc64_def_s

Definition at line 159 of file ioapi.h.

+ Collaboration diagram for zlib_filefunc64_def_s:
Data Fields
voidpf opaque
close_file_func zclose_file
testerror_file_func zerror_file
close_file_func zfakeclose_file
open64_file_func zopen64_file
read_file_func zread_file
seek64_file_func zseek64_file
tell64_file_func ztell64_file
write_file_func zwrite_file
struct zlib_filefunc64_32_def_s

Definition at line 176 of file ioapi.h.

+ Collaboration diagram for zlib_filefunc64_32_def_s:
Data Fields
zlib_filefunc64_def zfile_func64
open_file_func zopen32_file
seek_file_func zseek32_file
tell_file_func ztell32_file

Macro Definition Documentation

#define __USE_FILE_OFFSET64

Definition at line 32 of file ioapi.h.

#define __USE_LARGEFILE64

Definition at line 35 of file ioapi.h.

#define _FILE_OFFSET_BIT   64

Definition at line 41 of file ioapi.h.

#define _LARGEFILE64_SOURCE

Definition at line 38 of file ioapi.h.

#define OF   _Z_OF

Definition at line 106 of file ioapi.h.

#define ZCALLBACK

Definition at line 125 of file ioapi.h.

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

Definition at line 189 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 191 of file ioapi.h.

Referenced by unz64local_getByte(), and zip64local_getByte().

#define ZFAKECLOSE64 (   filefunc,
  filestream 
)    ((*((filefunc).zfile_func64.zfakeclose_file)) ((filefunc).zfile_func64.opaque,filestream))

Definition at line 190 of file ioapi.h.

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

#define ZLIB_FILEFUNC_MODE_CREATE   (8)

Definition at line 118 of file ioapi.h.

Referenced by qiodevice_open_file_func(), and zipOpen3().

#define ZLIB_FILEFUNC_MODE_EXISTING   (4)

Definition at line 117 of file ioapi.h.

Referenced by qiodevice_open_file_func(), unzOpenInternal(), and zipOpen3().

#define ZLIB_FILEFUNC_MODE_READ   (1)

Definition at line 113 of file ioapi.h.

Referenced by qiodevice_open_file_func(), unzOpenInternal(), and zipOpen3().

#define ZLIB_FILEFUNC_MODE_READWRITEFILTER   (3)

Definition at line 115 of file ioapi.h.

Referenced by qiodevice_open_file_func().

#define ZLIB_FILEFUNC_MODE_WRITE   (2)

Definition at line 114 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 199 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

zipFile ZEXPORT zipOpen64 _Z_OF ( (voidpf opaque, voidpf file, int mode)  )

Addition for GDAL : END.

Definition at line 132 of file ioapi.h.

typedef unsigned long long int ZPOS64_T

Definition at line 94 of file ioapi.h.

Function Documentation

void fill_qiodevice64_filefunc _Z_OF ( (zlib_filefunc64_def *pzlib_filefunc_def)  )
void fill_qiodevice_filefunc _Z_OF ( (zlib_filefunc_def *pzlib_filefunc_def)  )
voidpf call_zopen64 _Z_OF ( (const zlib_filefunc64_32_def *pfilefunc, voidpf file, int mode)  )
int call_zseek64 _Z_OF ( (const zlib_filefunc64_32_def *pfilefunc, voidpf filestream, ZPOS64_T offset, int origin)  )
ZPOS64_T call_ztell64 _Z_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 
)

Definition at line 346 of file qioapi.cpp.

References zlib_filefunc_def_s::opaque, zlib_filefunc64_def_s::opaque, zlib_filefunc_def_s::zclose_file, zlib_filefunc64_def_s::zclose_file, zlib_filefunc_def_s::zerror_file, zlib_filefunc64_def_s::zerror_file, zlib_filefunc64_def_s::zfakeclose_file, zlib_filefunc64_32_def_s::zfile_func64, zlib_filefunc64_32_def_s::zopen32_file, zlib_filefunc64_def_s::zopen64_file, zlib_filefunc_def_s::zopen_file, zlib_filefunc_def_s::zread_file, zlib_filefunc64_def_s::zread_file, zlib_filefunc64_32_def_s::zseek32_file, zlib_filefunc64_def_s::zseek64_file, zlib_filefunc_def_s::zseek_file, zlib_filefunc64_32_def_s::ztell32_file, zlib_filefunc64_def_s::ztell64_file, zlib_filefunc_def_s::ztell_file, zlib_filefunc_def_s::zwrite_file, and zlib_filefunc64_def_s::zwrite_file.

Referenced by unzOpen2(), and zipOpen2().

347 {
348  p_filefunc64_32->zfile_func64.zopen64_file = NULL;
349  p_filefunc64_32->zopen32_file = p_filefunc32->zopen_file;
350  p_filefunc64_32->zfile_func64.zerror_file = p_filefunc32->zerror_file;
351  p_filefunc64_32->zfile_func64.zread_file = p_filefunc32->zread_file;
352  p_filefunc64_32->zfile_func64.zwrite_file = p_filefunc32->zwrite_file;
353  p_filefunc64_32->zfile_func64.ztell64_file = NULL;
354  p_filefunc64_32->zfile_func64.zseek64_file = NULL;
355  p_filefunc64_32->zfile_func64.zclose_file = p_filefunc32->zclose_file;
356  p_filefunc64_32->zfile_func64.zerror_file = p_filefunc32->zerror_file;
357  p_filefunc64_32->zfile_func64.opaque = p_filefunc32->opaque;
358  p_filefunc64_32->zfile_func64.zfakeclose_file = NULL;
359  p_filefunc64_32->zseek32_file = p_filefunc32->zseek_file;
360  p_filefunc64_32->ztell32_file = p_filefunc32->ztell_file;
361 }
seek_file_func zseek_file
Definition: ioapi.h:149
close_file_func zclose_file
Definition: ioapi.h:150
read_file_func zread_file
Definition: ioapi.h:146
seek64_file_func zseek64_file
Definition: ioapi.h:165
testerror_file_func zerror_file
Definition: ioapi.h:167
tell64_file_func ztell64_file
Definition: ioapi.h:164
close_file_func zclose_file
Definition: ioapi.h:166
tell_file_func ztell_file
Definition: ioapi.h:148
open_file_func zopen_file
Definition: ioapi.h:145
testerror_file_func zerror_file
Definition: ioapi.h:151
zlib_filefunc64_def zfile_func64
Definition: ioapi.h:178
tell_file_func ztell32_file
Definition: ioapi.h:180
open_file_func zopen32_file
Definition: ioapi.h:179
read_file_func zread_file
Definition: ioapi.h:162
write_file_func zwrite_file
Definition: ioapi.h:163
write_file_func zwrite_file
Definition: ioapi.h:147
close_file_func zfakeclose_file
Definition: ioapi.h:169
seek_file_func zseek32_file
Definition: ioapi.h:181
open64_file_func zopen64_file
Definition: ioapi.h:161

+ Here is the caller graph for this function: