TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Macros | Functions
ioapi.c File Reference
#include "ioapi.h"

Go to the source code of this file.

Macros

#define FOPEN_FUNC(filename, mode)   fopen64(filename, mode)
 
#define FTELLO_FUNC(stream)   ftello64(stream)
 
#define FSEEKO_FUNC(stream, offset, origin)   fseeko64(stream, offset, origin)
 

Functions

voidpf call_zopen64 (const zlib_filefunc64_32_def *pfilefunc, const void *filename, int mode)
 
long call_zseek64 (const zlib_filefunc64_32_def *pfilefunc, voidpf filestream, ZPOS64_T offset, int origin)
 
ZPOS64_T call_ztell64 (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)
 
static voidpf ZCALLBACK fopen_file_func OF ((voidpf opaque, const char *filename, int mode))
 
static uLong ZCALLBACK fread_file_func OF ((voidpf opaque, voidpf stream, void *buf, uLong size))
 
static uLong ZCALLBACK fwrite_file_func OF ((voidpf opaque, voidpf stream, const void *buf, uLong size))
 
static ZPOS64_T ZCALLBACK ftell64_file_func OF ((voidpf opaque, voidpf stream))
 
static long ZCALLBACK fseek64_file_func OF ((voidpf opaque, voidpf stream, ZPOS64_T offset, int origin))
 
static voidpf ZCALLBACK fopen_file_func (voidpf opaque, const char *filename, int mode)
 
static voidpf ZCALLBACK fopen64_file_func (voidpf opaque, const void *filename, int mode)
 
static uLong ZCALLBACK fread_file_func (voidpf opaque, voidpf stream, void *buf, uLong size)
 
static uLong ZCALLBACK fwrite_file_func (voidpf opaque, voidpf stream, const void *buf, uLong size)
 
static long ZCALLBACK ftell_file_func (voidpf opaque, voidpf stream)
 
static ZPOS64_T ZCALLBACK ftell64_file_func (voidpf opaque, voidpf stream)
 
static long ZCALLBACK fseek_file_func (voidpf opaque, voidpf stream, uLong offset, int origin)
 
static long ZCALLBACK fseek64_file_func (voidpf opaque, voidpf stream, ZPOS64_T offset, int origin)
 
static int ZCALLBACK fclose_file_func (voidpf opaque, voidpf stream)
 
static int ZCALLBACK ferror_file_func (voidpf opaque, voidpf stream)
 
void fill_fopen_filefunc (zlib_filefunc_def *pzlib_filefunc_def)
 
void fill_fopen64_filefunc (zlib_filefunc64_def *pzlib_filefunc_def)
 

Macro Definition Documentation

#define FOPEN_FUNC (   filename,
  mode 
)    fopen64(filename, mode)

Definition at line 23 of file ioapi.c.

Referenced by fopen64_file_func().

#define FSEEKO_FUNC (   stream,
  offset,
  origin 
)    fseeko64(stream, offset, origin)

Definition at line 25 of file ioapi.c.

Referenced by fseek64_file_func().

#define FTELLO_FUNC (   stream)    ftello64(stream)

Definition at line 24 of file ioapi.c.

Referenced by ftell64_file_func().

Function Documentation

voidpf call_zopen64 ( const zlib_filefunc64_32_def pfilefunc,
const void *  filename,
int  mode 
)
long call_zseek64 ( const zlib_filefunc64_32_def pfilefunc,
voidpf  filestream,
ZPOS64_T  offset,
int  origin 
)
ZPOS64_T call_ztell64 ( const zlib_filefunc64_32_def pfilefunc,
voidpf  filestream 
)
static int ZCALLBACK fclose_file_func ( voidpf  opaque,
voidpf  stream 
)
static

Definition at line 210 of file ioapi.c.

Referenced by fill_fopen64_filefunc(), and fill_fopen_filefunc().

static int ZCALLBACK ferror_file_func ( voidpf  opaque,
voidpf  stream 
)
static

Definition at line 217 of file ioapi.c.

Referenced by fill_fopen64_filefunc(), and fill_fopen_filefunc().

void fill_fopen64_filefunc ( zlib_filefunc64_def pzlib_filefunc_def)
void fill_fopen_filefunc ( zlib_filefunc_def pzlib_filefunc_def)
void fill_zlib_filefunc64_32_def_from_filefunc32 ( zlib_filefunc64_32_def p_filefunc64_32,
const zlib_filefunc_def p_filefunc32 
)
static voidpf ZCALLBACK fopen64_file_func ( voidpf  opaque,
const void *  filename,
int  mode 
)
static
static voidpf ZCALLBACK fopen_file_func ( voidpf  opaque,
const char *  filename,
int  mode 
)
static
static uLong ZCALLBACK fread_file_func ( voidpf  opaque,
voidpf  stream,
void *  buf,
uLong  size 
)
static

Definition at line 132 of file ioapi.c.

Referenced by fill_fopen64_filefunc(), and fill_fopen_filefunc().

static long ZCALLBACK fseek64_file_func ( voidpf  opaque,
voidpf  stream,
ZPOS64_T  offset,
int  origin 
)
static
static long ZCALLBACK fseek_file_func ( voidpf  opaque,
voidpf  stream,
uLong  offset,
int  origin 
)
static
static ZPOS64_T ZCALLBACK ftell64_file_func ( voidpf  opaque,
voidpf  stream 
)
static

Definition at line 154 of file ioapi.c.

References FTELLO_FUNC.

Referenced by fill_fopen64_filefunc().

static long ZCALLBACK ftell_file_func ( voidpf  opaque,
voidpf  stream 
)
static

Definition at line 146 of file ioapi.c.

Referenced by fill_fopen_filefunc().

static uLong ZCALLBACK fwrite_file_func ( voidpf  opaque,
voidpf  stream,
const void *  buf,
uLong  size 
)
static

Definition at line 139 of file ioapi.c.

Referenced by fill_fopen64_filefunc(), and fill_fopen_filefunc().

static voidpf ZCALLBACK fopen_file_func OF ( (voidpf opaque, const char *filename, int mode )
static
static uLong ZCALLBACK fread_file_func OF ( (voidpf opaque, voidpf stream, void *buf, uLong size )
static
static uLong ZCALLBACK fwrite_file_func OF ( (voidpf opaque, voidpf stream, const void *buf, uLong size )
static
static int ZCALLBACK ferror_file_func OF ( (voidpf opaque, voidpf stream )
static