ioapi.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <zlib.h>
#include "ioapi.h"
Include dependency graph for ioapi.c:

Go to the source code of this file.

Defines

#define SEEK_CUR   1
#define SEEK_END   2
#define SEEK_SET   0

Functions

voidpf ZCALLBACK fopen_file_func OF ((voidpf opaque, const char *filename, int mode))
uLong ZCALLBACK fread_file_func OF ((voidpf opaque, voidpf stream, void *buf, uLong size))
uLong ZCALLBACK fwrite_file_func OF ((voidpf opaque, voidpf stream, const void *buf, uLong size))
long ZCALLBACK ftell_file_func OF ((voidpf opaque, voidpf stream))
long ZCALLBACK fseek_file_func OF ((voidpf opaque, voidpf stream, uLong offset, int origin))
voidpf ZCALLBACK fopen_file_func (voidpf opaque, const char *filename, int mode)
uLong ZCALLBACK fread_file_func (voidpf opaque, voidpf stream, void *buf, uLong size)
uLong ZCALLBACK fwrite_file_func (voidpf opaque, voidpf stream, const void *buf, uLong size)
long ZCALLBACK ftell_file_func (voidpf opaque, voidpf stream)
long ZCALLBACK fseek_file_func (voidpf opaque, voidpf stream, uLong offset, int origin)
int ZCALLBACK fclose_file_func (voidpf opaque, voidpf stream)
int ZCALLBACK ferror_file_func (voidpf opaque, voidpf stream)
void fill_fopen_filefunc (zlib_filefunc_def *pzlib_filefunc_def)

Define Documentation

#define SEEK_CUR   1

Definition at line 21 of file ioapi.c.

Referenced by f_seek(), FS_Seek(), fseek_file_func(), and sound::OggFileStream::oggSeekFunc().

#define SEEK_END   2
#define SEEK_SET   0

Function Documentation

int ZCALLBACK fclose_file_func ( voidpf  opaque,
voidpf  stream 
)

Definition at line 148 of file ioapi.c.

Referenced by fill_fopen_filefunc().

int ZCALLBACK ferror_file_func ( voidpf  opaque,
voidpf  stream 
)

Definition at line 157 of file ioapi.c.

Referenced by fill_fopen_filefunc().

void fill_fopen_filefunc ( zlib_filefunc_def pzlib_filefunc_def  ) 
voidpf ZCALLBACK fopen_file_func ( voidpf  opaque,
const char*  filename,
int  mode 
)
uLong ZCALLBACK fread_file_func ( voidpf  opaque,
voidpf  stream,
void*  buf,
uLong  size 
)

Definition at line 90 of file ioapi.c.

References uLong().

Referenced by fill_fopen_filefunc().

long ZCALLBACK fseek_file_func ( voidpf  opaque,
voidpf  stream,
uLong  offset,
int  origin 
)
long ZCALLBACK ftell_file_func ( voidpf  opaque,
voidpf  stream 
)

Definition at line 113 of file ioapi.c.

Referenced by fill_fopen_filefunc().

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

Definition at line 102 of file ioapi.c.

References uLong().

Referenced by fill_fopen_filefunc().

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

Generated by  doxygen 1.6.2