31 lines
997 B
C
31 lines
997 B
C
#ifndef _ZITF_H_
|
|
#define _ZITF_H_
|
|
|
|
#include "zconf.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef voidpf (*zitf_calloc_t)(unsigned _num, unsigned _size);
|
|
typedef void (*zitf_free_t)(voidpf _ptr);
|
|
typedef voidpf (*zitf_fopen_func)(const char* path, const char* mode);
|
|
typedef uInt (*zitf_fwrite_func)(voidpf buffer, uInt size, uInt count, voidpf fileHandle);
|
|
typedef int (*zitf_fclose_func)(voidpf fileHandle);
|
|
|
|
|
|
extern void zitf_set_alloc_functions(zitf_calloc_t _calloc, zitf_free_t _free);
|
|
extern voidpf zitf_calloc(voidpf, unsigned items, unsigned size);
|
|
extern void zitf_free(voidpf, voidpf ptr);
|
|
|
|
extern void zitf_file_io_functions(zitf_fopen_func _fopen, zitf_fwrite_func _fwrite, zitf_fclose_func _fclose);
|
|
extern voidpf zitf_fopen(const char* path, const char* mode);
|
|
extern uInt zitf_fwrite(voidpf buffer, uInt size, uInt count, voidpf fileHandle);
|
|
extern int zitf_fclose(voidpf fileHandle);
|
|
|
|
#ifdef __cplusplus
|
|
} // extern "C"
|
|
#endif
|
|
|
|
#endif // _ZITF_H_
|
|
|