--- hatari/src/includes/zip.h 2019/04/01 07:11:35 1.1.1.2 +++ hatari/src/includes/zip.h 2019/04/09 08:54:33 1.1.1.8 @@ -1,8 +1,8 @@ /* Hatari - zip.h - This file is distributed under the GNU Public License, version 2 or at - your option any later version. Read the file gpl.txt for details. + This file is distributed under the GNU General Public License, version 2 + or at your option any later version. Read the file gpl.txt for details. */ #ifndef HATARI_ZIP_H @@ -11,17 +11,19 @@ #include -typedef struct { - char **names; - int nfiles; +typedef struct +{ + char **names; + int nfiles; } zip_dir; -extern BOOL ZIP_FileNameIsZIP(char *pszFileName); -extern struct dirent **ZIP_GetFilesDir(zip_dir *files, char *dir, int *entries); +extern bool ZIP_FileNameIsZIP(const char *pszFileName); +extern struct dirent **ZIP_GetFilesDir(const zip_dir *files, const char *dir, int *entries); extern void ZIP_FreeZipDir(zip_dir *zd); -extern zip_dir *ZIP_GetFiles(char *pszFileName); -extern Uint8 *ZIP_ReadDisc(char *pszFileName, char *pszZipPath, long *pImageSize); -extern BOOL ZIP_WriteDisc(char *pszFileName,unsigned char *pBuffer,int ImageSize); +extern zip_dir *ZIP_GetFiles(const char *pszFileName); +extern Uint8 *ZIP_ReadDisk(int Drive, const char *pszFileName, const char *pszZipPath, long *pImageSize, int *pImageType); +extern bool ZIP_WriteDisk(int Drive, const char *pszFileName, unsigned char *pBuffer, int ImageSize); +extern Uint8 *ZIP_ReadFirstFile(const char *pszFileName, long *pImageSize, const char * const ppszExts[]); #endif /* HATARI_ZIP_H */