|
| 1 | +typedef unsigned char PHYSFS_uint8; |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | +typedef signed char PHYSFS_sint8; |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | +typedef unsigned short PHYSFS_uint16; |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | +typedef signed short PHYSFS_sint16; |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | +typedef unsigned int PHYSFS_uint32; |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | +typedef signed int PHYSFS_sint32; |
| 32 | +typedef unsigned long long PHYSFS_uint64; |
| 33 | +typedef signed long long PHYSFS_sint64; |
| 34 | +typedef int PHYSFS_dummy_uint8[(sizeof(PHYSFS_uint8) == 1) * 2 - 1]; |
| 35 | +typedef int PHYSFS_dummy_sint8[(sizeof(PHYSFS_sint8) == 1) * 2 - 1]; |
| 36 | +typedef int PHYSFS_dummy_uint16[(sizeof(PHYSFS_uint16) == 2) * 2 - 1]; |
| 37 | +typedef int PHYSFS_dummy_sint16[(sizeof(PHYSFS_sint16) == 2) * 2 - 1]; |
| 38 | +typedef int PHYSFS_dummy_uint32[(sizeof(PHYSFS_uint32) == 4) * 2 - 1]; |
| 39 | +typedef int PHYSFS_dummy_sint32[(sizeof(PHYSFS_sint32) == 4) * 2 - 1]; |
| 40 | + |
| 41 | + |
| 42 | +typedef int PHYSFS_dummy_uint64[(sizeof(PHYSFS_uint64) == 8) * 2 - 1]; |
| 43 | +typedef int PHYSFS_dummy_sint64[(sizeof(PHYSFS_sint64) == 8) * 2 - 1]; |
| 44 | +typedef struct PHYSFS_File |
| 45 | +{ |
| 46 | + void *opaque; |
| 47 | +} PHYSFS_File; |
| 48 | +typedef struct PHYSFS_ArchiveInfo |
| 49 | +{ |
| 50 | + const char *extension; |
| 51 | + const char *description; |
| 52 | + const char *author; |
| 53 | + const char *url; |
| 54 | +} PHYSFS_ArchiveInfo; |
| 55 | +typedef struct PHYSFS_Version |
| 56 | +{ |
| 57 | + PHYSFS_uint8 major; |
| 58 | + PHYSFS_uint8 minor; |
| 59 | + PHYSFS_uint8 patch; |
| 60 | +} PHYSFS_Version; |
| 61 | +__attribute__((visibility("default"))) void PHYSFS_getLinkedVersion(PHYSFS_Version *ver); |
| 62 | +__attribute__((visibility("default"))) int PHYSFS_init(const char *argv0); |
| 63 | +__attribute__((visibility("default"))) int PHYSFS_deinit(void); |
| 64 | +__attribute__((visibility("default"))) const PHYSFS_ArchiveInfo **PHYSFS_supportedArchiveTypes(void); |
| 65 | +__attribute__((visibility("default"))) void PHYSFS_freeList(void *listVar); |
| 66 | +__attribute__((visibility("default"))) const char *PHYSFS_getLastError(void); |
| 67 | +__attribute__((visibility("default"))) const char *PHYSFS_getDirSeparator(void); |
| 68 | +__attribute__((visibility("default"))) void PHYSFS_permitSymbolicLinks(int allow); |
| 69 | +__attribute__((visibility("default"))) char **PHYSFS_getCdRomDirs(void); |
| 70 | +__attribute__((visibility("default"))) const char *PHYSFS_getBaseDir(void); |
| 71 | +__attribute__((visibility("default"))) const char *PHYSFS_getUserDir(void); |
| 72 | +__attribute__((visibility("default"))) const char *PHYSFS_getWriteDir(void); |
| 73 | +__attribute__((visibility("default"))) int PHYSFS_setWriteDir(const char *newDir); |
| 74 | +__attribute__((visibility("default"))) int PHYSFS_addToSearchPath(const char *newDir, int appendToPath); |
| 75 | +__attribute__((visibility("default"))) int PHYSFS_removeFromSearchPath(const char *oldDir); |
| 76 | +__attribute__((visibility("default"))) char **PHYSFS_getSearchPath(void); |
| 77 | +__attribute__((visibility("default"))) int PHYSFS_setSaneConfig(const char *organization, |
| 78 | + const char *appName, |
| 79 | + const char *archiveExt, |
| 80 | + int includeCdRoms, |
| 81 | + int archivesFirst); |
| 82 | +__attribute__((visibility("default"))) int PHYSFS_mkdir(const char *dirName); |
| 83 | +__attribute__((visibility("default"))) int PHYSFS_delete(const char *filename); |
| 84 | +__attribute__((visibility("default"))) const char *PHYSFS_getRealDir(const char *filename); |
| 85 | +__attribute__((visibility("default"))) char **PHYSFS_enumerateFiles(const char *dir); |
| 86 | +__attribute__((visibility("default"))) int PHYSFS_exists(const char *fname); |
| 87 | +__attribute__((visibility("default"))) int PHYSFS_isDirectory(const char *fname); |
| 88 | +__attribute__((visibility("default"))) int PHYSFS_isSymbolicLink(const char *fname); |
| 89 | +__attribute__((visibility("default"))) PHYSFS_sint64 PHYSFS_getLastModTime(const char *filename); |
| 90 | +__attribute__((visibility("default"))) PHYSFS_File *PHYSFS_openWrite(const char *filename); |
| 91 | +__attribute__((visibility("default"))) PHYSFS_File *PHYSFS_openAppend(const char *filename); |
| 92 | +__attribute__((visibility("default"))) PHYSFS_File *PHYSFS_openRead(const char *filename); |
| 93 | +__attribute__((visibility("default"))) int PHYSFS_close(PHYSFS_File *handle); |
| 94 | +__attribute__((visibility("default"))) PHYSFS_sint64 PHYSFS_read(PHYSFS_File *handle, |
| 95 | + void *buffer, |
| 96 | + PHYSFS_uint32 objSize, |
| 97 | + PHYSFS_uint32 objCount); |
| 98 | +__attribute__((visibility("default"))) PHYSFS_sint64 PHYSFS_write(PHYSFS_File *handle, |
| 99 | + const void *buffer, |
| 100 | + PHYSFS_uint32 objSize, |
| 101 | + PHYSFS_uint32 objCount); |
| 102 | +__attribute__((visibility("default"))) int PHYSFS_eof(PHYSFS_File *handle); |
| 103 | +__attribute__((visibility("default"))) PHYSFS_sint64 PHYSFS_tell(PHYSFS_File *handle); |
| 104 | +__attribute__((visibility("default"))) int PHYSFS_seek(PHYSFS_File *handle, PHYSFS_uint64 pos); |
| 105 | +__attribute__((visibility("default"))) PHYSFS_sint64 PHYSFS_fileLength(PHYSFS_File *handle); |
| 106 | +__attribute__((visibility("default"))) int PHYSFS_setBuffer(PHYSFS_File *handle, PHYSFS_uint64 bufsize); |
| 107 | +__attribute__((visibility("default"))) int PHYSFS_flush(PHYSFS_File *handle); |
| 108 | +__attribute__((visibility("default"))) PHYSFS_sint16 PHYSFS_swapSLE16(PHYSFS_sint16 val); |
| 109 | +__attribute__((visibility("default"))) PHYSFS_uint16 PHYSFS_swapULE16(PHYSFS_uint16 val); |
| 110 | +__attribute__((visibility("default"))) PHYSFS_sint32 PHYSFS_swapSLE32(PHYSFS_sint32 val); |
| 111 | +__attribute__((visibility("default"))) PHYSFS_uint32 PHYSFS_swapULE32(PHYSFS_uint32 val); |
| 112 | +__attribute__((visibility("default"))) PHYSFS_sint64 PHYSFS_swapSLE64(PHYSFS_sint64 val); |
| 113 | +__attribute__((visibility("default"))) PHYSFS_uint64 PHYSFS_swapULE64(PHYSFS_uint64 val); |
| 114 | +__attribute__((visibility("default"))) PHYSFS_sint16 PHYSFS_swapSBE16(PHYSFS_sint16 val); |
| 115 | +__attribute__((visibility("default"))) PHYSFS_uint16 PHYSFS_swapUBE16(PHYSFS_uint16 val); |
| 116 | +__attribute__((visibility("default"))) PHYSFS_sint32 PHYSFS_swapSBE32(PHYSFS_sint32 val); |
| 117 | +__attribute__((visibility("default"))) PHYSFS_uint32 PHYSFS_swapUBE32(PHYSFS_uint32 val); |
| 118 | +__attribute__((visibility("default"))) PHYSFS_sint64 PHYSFS_swapSBE64(PHYSFS_sint64 val); |
| 119 | +__attribute__((visibility("default"))) PHYSFS_uint64 PHYSFS_swapUBE64(PHYSFS_uint64 val); |
| 120 | +__attribute__((visibility("default"))) int PHYSFS_readSLE16(PHYSFS_File *file, PHYSFS_sint16 *val); |
| 121 | +__attribute__((visibility("default"))) int PHYSFS_readULE16(PHYSFS_File *file, PHYSFS_uint16 *val); |
| 122 | +__attribute__((visibility("default"))) int PHYSFS_readSBE16(PHYSFS_File *file, PHYSFS_sint16 *val); |
| 123 | +__attribute__((visibility("default"))) int PHYSFS_readUBE16(PHYSFS_File *file, PHYSFS_uint16 *val); |
| 124 | +__attribute__((visibility("default"))) int PHYSFS_readSLE32(PHYSFS_File *file, PHYSFS_sint32 *val); |
| 125 | +__attribute__((visibility("default"))) int PHYSFS_readULE32(PHYSFS_File *file, PHYSFS_uint32 *val); |
| 126 | +__attribute__((visibility("default"))) int PHYSFS_readSBE32(PHYSFS_File *file, PHYSFS_sint32 *val); |
| 127 | +__attribute__((visibility("default"))) int PHYSFS_readUBE32(PHYSFS_File *file, PHYSFS_uint32 *val); |
| 128 | +__attribute__((visibility("default"))) int PHYSFS_readSLE64(PHYSFS_File *file, PHYSFS_sint64 *val); |
| 129 | +__attribute__((visibility("default"))) int PHYSFS_readULE64(PHYSFS_File *file, PHYSFS_uint64 *val); |
| 130 | +__attribute__((visibility("default"))) int PHYSFS_readSBE64(PHYSFS_File *file, PHYSFS_sint64 *val); |
| 131 | +__attribute__((visibility("default"))) int PHYSFS_readUBE64(PHYSFS_File *file, PHYSFS_uint64 *val); |
| 132 | +__attribute__((visibility("default"))) int PHYSFS_writeSLE16(PHYSFS_File *file, PHYSFS_sint16 val); |
| 133 | +__attribute__((visibility("default"))) int PHYSFS_writeULE16(PHYSFS_File *file, PHYSFS_uint16 val); |
| 134 | +__attribute__((visibility("default"))) int PHYSFS_writeSBE16(PHYSFS_File *file, PHYSFS_sint16 val); |
| 135 | +__attribute__((visibility("default"))) int PHYSFS_writeUBE16(PHYSFS_File *file, PHYSFS_uint16 val); |
| 136 | +__attribute__((visibility("default"))) int PHYSFS_writeSLE32(PHYSFS_File *file, PHYSFS_sint32 val); |
| 137 | +__attribute__((visibility("default"))) int PHYSFS_writeULE32(PHYSFS_File *file, PHYSFS_uint32 val); |
| 138 | +__attribute__((visibility("default"))) int PHYSFS_writeSBE32(PHYSFS_File *file, PHYSFS_sint32 val); |
| 139 | +__attribute__((visibility("default"))) int PHYSFS_writeUBE32(PHYSFS_File *file, PHYSFS_uint32 val); |
| 140 | +__attribute__((visibility("default"))) int PHYSFS_writeSLE64(PHYSFS_File *file, PHYSFS_sint64 val); |
| 141 | +__attribute__((visibility("default"))) int PHYSFS_writeULE64(PHYSFS_File *file, PHYSFS_uint64 val); |
| 142 | +__attribute__((visibility("default"))) int PHYSFS_writeSBE64(PHYSFS_File *file, PHYSFS_sint64 val); |
| 143 | +__attribute__((visibility("default"))) int PHYSFS_writeUBE64(PHYSFS_File *file, PHYSFS_uint64 val); |
| 144 | +__attribute__((visibility("default"))) int PHYSFS_isInit(void); |
| 145 | +__attribute__((visibility("default"))) int PHYSFS_symbolicLinksPermitted(void); |
| 146 | +typedef struct PHYSFS_Allocator |
| 147 | +{ |
| 148 | + int (*Init)(void); |
| 149 | + void (*Deinit)(void); |
| 150 | + void *(*Malloc)(PHYSFS_uint64); |
| 151 | + void *(*Realloc)(void *, PHYSFS_uint64); |
| 152 | + void (*Free)(void *); |
| 153 | +} PHYSFS_Allocator; |
| 154 | +__attribute__((visibility("default"))) int PHYSFS_setAllocator(const PHYSFS_Allocator *allocator); |
| 155 | +__attribute__((visibility("default"))) int PHYSFS_mount(const char *newDir, const char *mountPoint, int appendToPath); |
| 156 | +__attribute__((visibility("default"))) const char *PHYSFS_getMountPoint(const char *dir); |
| 157 | +typedef void (*PHYSFS_StringCallback)(void *data, const char *str); |
| 158 | +typedef void (*PHYSFS_EnumFilesCallback)(void *data, const char *origdir, |
| 159 | + const char *fname); |
| 160 | +__attribute__((visibility("default"))) void PHYSFS_getCdRomDirsCallback(PHYSFS_StringCallback c, void *d); |
| 161 | +__attribute__((visibility("default"))) void PHYSFS_getSearchPathCallback(PHYSFS_StringCallback c, void *d); |
| 162 | +__attribute__((visibility("default"))) void PHYSFS_enumerateFilesCallback(const char *dir, |
| 163 | + PHYSFS_EnumFilesCallback c, |
| 164 | + void *d); |
| 165 | +__attribute__((visibility("default"))) void PHYSFS_utf8FromUcs4(const PHYSFS_uint32 *src, char *dst, |
| 166 | + PHYSFS_uint64 len); |
| 167 | +__attribute__((visibility("default"))) void PHYSFS_utf8ToUcs4(const char *src, PHYSFS_uint32 *dst, |
| 168 | + PHYSFS_uint64 len); |
| 169 | +__attribute__((visibility("default"))) void PHYSFS_utf8FromUcs2(const PHYSFS_uint16 *src, char *dst, |
| 170 | + PHYSFS_uint64 len); |
| 171 | +__attribute__((visibility("default"))) void PHYSFS_utf8ToUcs2(const char *src, PHYSFS_uint16 *dst, |
| 172 | + PHYSFS_uint64 len); |
| 173 | +__attribute__((visibility("default"))) void PHYSFS_utf8FromLatin1(const char *src, char *dst, |
| 174 | + PHYSFS_uint64 len); |
| 175 | + |
0 commit comments