Rearranged PHYSFS_Archiver struct.
This commit is contained in:
parent
f5c746967f
commit
2dd99ccbb2
|
@ -183,8 +183,8 @@ const PHYSFS_Archiver __PHYSFS_Archiver_DIR =
|
||||||
DIR_openAppend,
|
DIR_openAppend,
|
||||||
DIR_remove,
|
DIR_remove,
|
||||||
DIR_mkdir,
|
DIR_mkdir,
|
||||||
DIR_closeArchive,
|
DIR_stat,
|
||||||
DIR_stat
|
DIR_closeArchive
|
||||||
};
|
};
|
||||||
|
|
||||||
/* end of archiver_dir.c ... */
|
/* end of archiver_dir.c ... */
|
||||||
|
|
|
@ -102,8 +102,8 @@ const PHYSFS_Archiver __PHYSFS_Archiver_GRP =
|
||||||
UNPK_openAppend,
|
UNPK_openAppend,
|
||||||
UNPK_remove,
|
UNPK_remove,
|
||||||
UNPK_mkdir,
|
UNPK_mkdir,
|
||||||
UNPK_closeArchive,
|
UNPK_stat,
|
||||||
UNPK_stat
|
UNPK_closeArchive
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* defined PHYSFS_SUPPORTS_GRP */
|
#endif /* defined PHYSFS_SUPPORTS_GRP */
|
||||||
|
|
|
@ -108,8 +108,8 @@ const PHYSFS_Archiver __PHYSFS_Archiver_HOG =
|
||||||
UNPK_openAppend,
|
UNPK_openAppend,
|
||||||
UNPK_remove,
|
UNPK_remove,
|
||||||
UNPK_mkdir,
|
UNPK_mkdir,
|
||||||
UNPK_closeArchive,
|
UNPK_stat,
|
||||||
UNPK_stat
|
UNPK_closeArchive
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* defined PHYSFS_SUPPORTS_HOG */
|
#endif /* defined PHYSFS_SUPPORTS_HOG */
|
||||||
|
|
|
@ -951,8 +951,8 @@ const PHYSFS_Archiver __PHYSFS_Archiver_ISO9660 =
|
||||||
ISO9660_openAppend,
|
ISO9660_openAppend,
|
||||||
ISO9660_remove,
|
ISO9660_remove,
|
||||||
ISO9660_mkdir,
|
ISO9660_mkdir,
|
||||||
ISO9660_closeArchive,
|
ISO9660_stat,
|
||||||
ISO9660_stat
|
ISO9660_closeArchive
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* defined PHYSFS_SUPPORTS_ISO9660 */
|
#endif /* defined PHYSFS_SUPPORTS_ISO9660 */
|
||||||
|
|
|
@ -689,8 +689,8 @@ const PHYSFS_Archiver __PHYSFS_Archiver_LZMA =
|
||||||
LZMA_openAppend,
|
LZMA_openAppend,
|
||||||
LZMA_remove,
|
LZMA_remove,
|
||||||
LZMA_mkdir,
|
LZMA_mkdir,
|
||||||
LZMA_closeArchive,
|
LZMA_stat,
|
||||||
LZMA_stat
|
LZMA_closeArchive
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* defined PHYSFS_SUPPORTS_7Z */
|
#endif /* defined PHYSFS_SUPPORTS_7Z */
|
||||||
|
|
|
@ -95,8 +95,8 @@ const PHYSFS_Archiver __PHYSFS_Archiver_MVL =
|
||||||
UNPK_openAppend,
|
UNPK_openAppend,
|
||||||
UNPK_remove,
|
UNPK_remove,
|
||||||
UNPK_mkdir,
|
UNPK_mkdir,
|
||||||
UNPK_closeArchive,
|
UNPK_stat,
|
||||||
UNPK_stat
|
UNPK_closeArchive
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* defined PHYSFS_SUPPORTS_MVL */
|
#endif /* defined PHYSFS_SUPPORTS_MVL */
|
||||||
|
|
|
@ -111,8 +111,8 @@ const PHYSFS_Archiver __PHYSFS_Archiver_QPAK =
|
||||||
UNPK_openAppend,
|
UNPK_openAppend,
|
||||||
UNPK_remove,
|
UNPK_remove,
|
||||||
UNPK_mkdir,
|
UNPK_mkdir,
|
||||||
UNPK_closeArchive,
|
UNPK_stat,
|
||||||
UNPK_stat
|
UNPK_closeArchive
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* defined PHYSFS_SUPPORTS_QPAK */
|
#endif /* defined PHYSFS_SUPPORTS_QPAK */
|
||||||
|
|
|
@ -116,8 +116,8 @@ const PHYSFS_Archiver __PHYSFS_Archiver_SLB =
|
||||||
UNPK_openAppend,
|
UNPK_openAppend,
|
||||||
UNPK_remove,
|
UNPK_remove,
|
||||||
UNPK_mkdir,
|
UNPK_mkdir,
|
||||||
UNPK_closeArchive,
|
UNPK_stat,
|
||||||
UNPK_stat
|
UNPK_closeArchive
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* defined PHYSFS_SUPPORTS_SLB */
|
#endif /* defined PHYSFS_SUPPORTS_SLB */
|
||||||
|
|
|
@ -119,8 +119,8 @@ const PHYSFS_Archiver __PHYSFS_Archiver_WAD =
|
||||||
UNPK_openAppend,
|
UNPK_openAppend,
|
||||||
UNPK_remove,
|
UNPK_remove,
|
||||||
UNPK_mkdir,
|
UNPK_mkdir,
|
||||||
UNPK_closeArchive,
|
UNPK_stat,
|
||||||
UNPK_stat
|
UNPK_closeArchive
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* defined PHYSFS_SUPPORTS_WAD */
|
#endif /* defined PHYSFS_SUPPORTS_WAD */
|
||||||
|
|
|
@ -1702,8 +1702,8 @@ const PHYSFS_Archiver __PHYSFS_Archiver_ZIP =
|
||||||
ZIP_openAppend,
|
ZIP_openAppend,
|
||||||
ZIP_remove,
|
ZIP_remove,
|
||||||
ZIP_mkdir,
|
ZIP_mkdir,
|
||||||
ZIP_closeArchive,
|
ZIP_stat,
|
||||||
ZIP_stat
|
ZIP_closeArchive
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* defined PHYSFS_SUPPORTS_ZIP */
|
#endif /* defined PHYSFS_SUPPORTS_ZIP */
|
||||||
|
|
15
src/physfs.h
15
src/physfs.h
|
@ -3477,7 +3477,13 @@ typedef struct PHYSFS_Archiver
|
||||||
*/
|
*/
|
||||||
int (*mkdir)(void *opaque, const char *filename);
|
int (*mkdir)(void *opaque, const char *filename);
|
||||||
|
|
||||||
// !!! FIXME: reorder these methods.
|
/**
|
||||||
|
* Obtain basic file metadata.
|
||||||
|
* Returns non-zero on success, zero on failure.
|
||||||
|
* On failure, call PHYSFS_setErrorCode().
|
||||||
|
*/
|
||||||
|
int (*stat)(void *opaque, const char *fn, PHYSFS_Stat *stat);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Close directories/archives, and free any associated memory,
|
* Close directories/archives, and free any associated memory,
|
||||||
* including the original PHYSFS_Io and (opaque) itself, if
|
* including the original PHYSFS_Io and (opaque) itself, if
|
||||||
|
@ -3485,13 +3491,6 @@ typedef struct PHYSFS_Archiver
|
||||||
* there are still files open from this archive.
|
* there are still files open from this archive.
|
||||||
*/
|
*/
|
||||||
void (*closeArchive)(void *opaque);
|
void (*closeArchive)(void *opaque);
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtain basic file metadata.
|
|
||||||
* Returns non-zero on success, zero on failure.
|
|
||||||
* On failure, call PHYSFS_setErrorCode().
|
|
||||||
*/
|
|
||||||
int (*stat)(void *opaque, const char *fn, PHYSFS_Stat *stat);
|
|
||||||
} PHYSFS_Archiver;
|
} PHYSFS_Archiver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue