|
|
1.1 root 1: /*
1.1.1.5 root 2: Hatari - file.h
3:
4: This file is distributed under the GNU Public License, version 2 or at
5: your option any later version. Read the file gpl.txt for details.
1.1 root 6: */
7:
1.1.1.3 root 8: #ifndef HATARI_FILE_H
9: #define HATARI_FILE_H
10:
1.1 root 11: /* File types */
1.1.1.5 root 12: enum
13: {
1.1 root 14: FILEFILTER_DISCFILES,
15: FILEFILTER_ALLFILES,
16: FILEFILTER_TOSROM,
17: FILEFILTER_MAPFILE,
18: FILEFILTER_YMFILE,
19: FILEFILTER_MEMORYFILE,
20: };
21:
1.1.1.5 root 22: #if defined(__BEOS__) || (defined(__sun) && defined(__SVR4))
1.1.1.3 root 23: #include <dirent.h>
24: extern int alphasort(const void *d1, const void *d2);
1.1.1.6 ! root 25: extern int scandir(const char *dirname, struct dirent ***namelist, int (*select)(struct dirent *), int (*dcomp)(const void *, const void *));
1.1.1.3 root 26: #endif /* __BEOS__ */
27:
1.1 root 28: extern void File_CleanFileName(char *pszFileName);
29: extern void File_AddSlashToEndFileName(char *pszFileName);
30: extern BOOL File_DoesFileExtensionMatch(char *pszFileName, char *pszExtension);
31: extern BOOL File_IsRootFileName(char *pszFileName);
32: extern char *File_RemoveFileNameDrive(char *pszFileName);
33: extern BOOL File_DoesFileNameEndWithSlash(char *pszFileName);
34: extern void File_RemoveFileNameTrailingSlashes(char *pszFileName);
35: extern void *File_Read(char *pszFileName, void *pAddress, long *pFileSize, char *ppszExts[]);
1.1.1.5 root 36: extern BOOL File_Save(char *pszFileName, void *pAddress, size_t Size, BOOL bQueryOverwrite);
1.1 root 37: extern int File_Length(char *pszFileName);
38: extern BOOL File_Exists(char *pszFileName);
39: extern BOOL File_Delete(char *pszFileName);
1.1.1.2 root 40: extern BOOL File_QueryOverwrite(char *pszFileName);
1.1 root 41: extern BOOL File_FindPossibleExtFileName(char *pszFileName,char *ppszExts[]);
1.1.1.3 root 42: extern void File_splitpath(char *pSrcFileName, char *pDir, char *pName, char *Ext);
43: extern void File_makepath(char *pDestFileName, char *pDir, char *pName, char *pExt);
44: extern void File_ShrinkName(char *pDestFileName, char *pSrcFileName, int maxlen);
1.1.1.5 root 45: extern void File_MakeAbsoluteName(char *pszFileName);
1.1.1.3 root 46:
47: #endif /* HATARI_FILE_H */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.