| 1 | |
| 2 | #ifndef ZLIBIOAPI64_H |
| 3 | #define ZLIBIOAPI64_Hcxx . . $ `compat/ioapi.h:3:9`! |
| 4 | |
| 5 | #include <stdint.h> |
| 6 | |
| 7 | typedef uint64_tcxx . . $ uint64_t# ZPOS64_Tcxx . . $ ZPOS64_T#; |
| 8 | |
| 9 | #ifndef ZEXPORTcxx . . $ `<external>/116306602880328527/zconf.h:392:11`! |
| 10 | # define ZEXPORT |
| 11 | #endif |
| 12 | |
| 13 | #ifdef __cplusplus |
| 14 | extern "C" { |
| 15 | #endif |
| 16 | |
| 17 | /***************************************************************************/ |
| 18 | |
| 19 | #define ZLIB_FILEFUNC_SEEK_SETcxx . . $ `compat/ioapi.h:19:9`! (0) |
| 20 | #define ZLIB_FILEFUNC_SEEK_CURcxx . . $ `compat/ioapi.h:20:9`! (1) |
| 21 | #define ZLIB_FILEFUNC_SEEK_ENDcxx . . $ `compat/ioapi.h:21:9`! (2) |
| 22 | |
| 23 | #define ZLIB_FILEFUNC_MODE_READcxx . . $ `compat/ioapi.h:23:9`! (1) |
| 24 | #define ZLIB_FILEFUNC_MODE_WRITEcxx . . $ `compat/ioapi.h:24:9`! (2) |
| 25 | #define ZLIB_FILEFUNC_MODE_READWRITEFILTERcxx . . $ `compat/ioapi.h:25:9`! (3) |
| 26 | |
| 27 | #define ZLIB_FILEFUNC_MODE_EXISTINGcxx . . $ `compat/ioapi.h:27:9`! (4) |
| 28 | #define ZLIB_FILEFUNC_MODE_CREATEcxx . . $ `compat/ioapi.h:28:9`! (8) |
| 29 | |
| 30 | #ifndef ZCALLBACK |
| 31 | # define ZCALLBACKcxx . . $ `compat/ioapi.h:31:11`! |
| 32 | #endif |
| 33 | |
| 34 | /***************************************************************************/ |
| 35 | |
| 36 | typedef void *(ZCALLBACKcxx . . $ `compat/ioapi.h:31:11`! *open_file_funccxx . . $ open_file_func#)(void *opaque, const char *filename, int mode); |
| 37 | typedef void *(ZCALLBACKcxx . . $ `compat/ioapi.h:31:11`! *open64_file_funccxx . . $ open64_file_func#)(void *opaque, const void *filename, int mode); |
| 38 | typedef unsigned long(ZCALLBACKcxx . . $ `compat/ioapi.h:31:11`! *read_file_funccxx . . $ read_file_func#)(void *opaque, void *stream, void *buf, unsigned long size); |
| 39 | typedef unsigned long(ZCALLBACKcxx . . $ `compat/ioapi.h:31:11`! *write_file_funccxx . . $ write_file_func#)(void *opaque, void *stream, const void *buf, unsigned long size); |
| 40 | typedef int(ZCALLBACKcxx . . $ `compat/ioapi.h:31:11`! *close_file_funccxx . . $ close_file_func#)(void *opaque, void *stream); |
| 41 | typedef int(ZCALLBACKcxx . . $ `compat/ioapi.h:31:11`! *testerror_file_funccxx . . $ testerror_file_func#)(void *opaque, void *stream); |
| 42 | typedef long(ZCALLBACKcxx . . $ `compat/ioapi.h:31:11`! *tell_file_funccxx . . $ tell_file_func#)(void *opaque, void *stream); |
| 43 | typedef ZPOS64_Tcxx . . $ ZPOS64_T#(ZCALLBACKcxx . . $ `compat/ioapi.h:31:11`! *tell64_file_funccxx . . $ tell64_file_func#)(void *opaque, void *stream); |
| 44 | typedef long(ZCALLBACKcxx . . $ `compat/ioapi.h:31:11`! *seek_file_funccxx . . $ seek_file_func#)(void *opaque, void *stream, unsigned long offset, int origin); |
| 45 | typedef long(ZCALLBACKcxx . . $ `compat/ioapi.h:31:11`! *seek64_file_funccxx . . $ seek64_file_func#)(void *opaque, void *stream, ZPOS64_Tcxx . . $ ZPOS64_T# offset, int origin); |
| 46 | |
| 47 | /***************************************************************************/ |
| 48 | |
| 49 | typedef struct zlib_filefunc_def_scxx . . $ zlib_filefunc_def_s# { |
| 50 | open_file_funccxx . . $ open_file_func# zopen_filecxx . . $ zlib_filefunc_def_s#zopen_file.; |
| 51 | read_file_funccxx . . $ read_file_func# zread_filecxx . . $ zlib_filefunc_def_s#zread_file.; |
| 52 | write_file_funccxx . . $ write_file_func# zwrite_filecxx . . $ zlib_filefunc_def_s#zwrite_file.; |
| 53 | tell_file_funccxx . . $ tell_file_func# ztell_filecxx . . $ zlib_filefunc_def_s#ztell_file.; |
| 54 | seek_file_funccxx . . $ seek_file_func# zseek_filecxx . . $ zlib_filefunc_def_s#zseek_file.; |
| 55 | close_file_funccxx . . $ close_file_func# zclose_filecxx . . $ zlib_filefunc_def_s#zclose_file.; |
| 56 | testerror_file_funccxx . . $ testerror_file_func# zerror_filecxx . . $ zlib_filefunc_def_s#zerror_file.; |
| 57 | void *opaquecxx . . $ zlib_filefunc_def_s#opaque.; |
| 58 | } zlib_filefunc_defcxx . . $ zlib_filefunc_def#; |
| 59 | |
| 60 | typedef struct zlib_filefunc64_def_scxx . . $ zlib_filefunc64_def_s# { |
| 61 | open64_file_funccxx . . $ open64_file_func# zopen64_filecxx . . $ zlib_filefunc64_def_s#zopen64_file.; |
| 62 | read_file_funccxx . . $ read_file_func# zread_filecxx . . $ zlib_filefunc64_def_s#zread_file.; |
| 63 | write_file_funccxx . . $ write_file_func# zwrite_filecxx . . $ zlib_filefunc64_def_s#zwrite_file.; |
| 64 | tell64_file_funccxx . . $ tell64_file_func# ztell64_filecxx . . $ zlib_filefunc64_def_s#ztell64_file.; |
| 65 | seek64_file_funccxx . . $ seek64_file_func# zseek64_filecxx . . $ zlib_filefunc64_def_s#zseek64_file.; |
| 66 | close_file_funccxx . . $ close_file_func# zclose_filecxx . . $ zlib_filefunc64_def_s#zclose_file.; |
| 67 | testerror_file_funccxx . . $ testerror_file_func# zerror_filecxx . . $ zlib_filefunc64_def_s#zerror_file.; |
| 68 | void *opaquecxx . . $ zlib_filefunc64_def_s#opaque.; |
| 69 | } zlib_filefunc64_defcxx . . $ zlib_filefunc64_def#; |
| 70 | |
| 71 | /***************************************************************************/ |
| 72 | |
| 73 | /* Compatibility layer with the original minizip library (ioapi.h and iowin32.h). */ |
| 74 | ZEXPORTcxx . . $ `<external>/116306602880328527/zconf.h:392:11`! void fill_fopen_filefunccxx . . $ fill_fopen_filefunc(1a50b5b7c2234ef7).(zlib_filefunc_defcxx . . $ zlib_filefunc_def# *pzlib_filefunc_def); |
| 75 | ZEXPORTcxx . . $ `<external>/116306602880328527/zconf.h:392:11`! void fill_fopen64_filefunccxx . . $ fill_fopen64_filefunc(83ae4746d8b1ad4b).(zlib_filefunc64_defcxx . . $ zlib_filefunc64_def# *pzlib_filefunc_def); |
| 76 | ZEXPORTcxx . . $ `<external>/116306602880328527/zconf.h:392:11`! void fill_win32_filefunccxx . . $ fill_win32_filefunc(1a50b5b7c2234ef7).(zlib_filefunc_defcxx . . $ zlib_filefunc_def# *pzlib_filefunc_def); |
| 77 | ZEXPORTcxx . . $ `<external>/116306602880328527/zconf.h:392:11`! void fill_win32_filefunc64cxx . . $ fill_win32_filefunc64(83ae4746d8b1ad4b).(zlib_filefunc64_defcxx . . $ zlib_filefunc64_def# *pzlib_filefunc_def); |
| 78 | ZEXPORTcxx . . $ `<external>/116306602880328527/zconf.h:392:11`! void fill_win32_filefunc64Acxx . . $ fill_win32_filefunc64A(83ae4746d8b1ad4b).(zlib_filefunc64_defcxx . . $ zlib_filefunc64_def# *pzlib_filefunc_def); |
| 79 | |
| 80 | /* Compatibility layer with older minizip-ng (ioapi_mem.h). */ |
| 81 | ZEXPORTcxx . . $ `<external>/116306602880328527/zconf.h:392:11`! void fill_memory_filefunccxx . . $ fill_memory_filefunc(1a50b5b7c2234ef7).(zlib_filefunc_defcxx . . $ zlib_filefunc_def# *pzlib_filefunc_def); |
| 82 | |
| 83 | /***************************************************************************/ |
| 84 | |
| 85 | int32_tcxx . . $ int32_t# mz_stream_ioapi_set_filefunccxx . . $ mz_stream_ioapi_set_filefunc(c7baa3b6b19787c2).(void *stream, zlib_filefunc_defcxx . . $ zlib_filefunc_def# *filefunc); |
| 86 | int32_tcxx . . $ int32_t# mz_stream_ioapi_set_filefunc64cxx . . $ mz_stream_ioapi_set_filefunc64(ca0c56fe0832fb26).(void *stream, zlib_filefunc64_defcxx . . $ zlib_filefunc64_def# *filefunc); |
| 87 | |
| 88 | void *mz_stream_ioapi_createcxx . . $ mz_stream_ioapi_create(50c7df7de5344ebb).(void); |
| 89 | void mz_stream_ioapi_deletecxx . . $ mz_stream_ioapi_delete(539e082cf00e1f43).(void **stream); |
| 90 | |
| 91 | /***************************************************************************/ |
| 92 | |
| 93 | #ifdef __cplusplus |
| 94 | } |
| 95 | #endif |
| 96 | |
| 97 | #endif |