|
|
1.1 root 1: /*
1.1.1.2 root 2: Hatari - zip.h
3:
1.1.1.7 root 4: This file is distributed under the GNU General Public License, version 2
5: or at your option any later version. Read the file gpl.txt for details.
1.1 root 6: */
1.1.1.2 root 7:
8: #ifndef HATARI_ZIP_H
9: #define HATARI_ZIP_H
10:
11:
1.1 root 12: #include <dirent.h>
13:
1.1.1.4 root 14: typedef struct
15: {
16: char **names;
17: int nfiles;
1.1 root 18: } zip_dir;
19:
1.1.1.6 root 20: extern bool ZIP_FileNameIsZIP(const char *pszFileName);
1.1.1.5 root 21: extern struct dirent **ZIP_GetFilesDir(const zip_dir *files, const char *dir, int *entries);
1.1.1.2 root 22: extern void ZIP_FreeZipDir(zip_dir *zd);
1.1.1.5 root 23: extern zip_dir *ZIP_GetFiles(const char *pszFileName);
1.1.1.8 ! root 24: extern Uint8 *ZIP_ReadDisk(int Drive, const char *pszFileName, const char *pszZipPath, long *pImageSize, int *pImageType);
! 25: extern bool ZIP_WriteDisk(int Drive, const char *pszFileName, unsigned char *pBuffer, int ImageSize);
1.1.1.5 root 26: extern Uint8 *ZIP_ReadFirstFile(const char *pszFileName, long *pImageSize, const char * const ppszExts[]);
1.1 root 27:
28:
1.1.1.2 root 29: #endif /* HATARI_ZIP_H */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.