|
|
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.1.5 root 11: #if defined(__BEOS__) || (defined(__sun) && defined(__SVR4))
1.1.1.3 root 12: #include <dirent.h>
13: extern int alphasort(const void *d1, const void *d2);
1.1.1.7 root 14: extern int scandir(const char *dirname, struct dirent ***namelist, int (*sdfilter)(struct dirent *), int (*dcomp)(const void *, const void *));
1.1.1.3 root 15: #endif /* __BEOS__ */
16:
1.1 root 17: extern void File_CleanFileName(char *pszFileName);
18: extern void File_AddSlashToEndFileName(char *pszFileName);
1.1.1.7 root 19: extern BOOL File_DoesFileExtensionMatch(const char *pszFileName, const char *pszExtension);
1.1 root 20: extern BOOL File_IsRootFileName(char *pszFileName);
1.1.1.7 root 21: extern const char *File_RemoveFileNameDrive(const char *pszFileName);
1.1 root 22: extern BOOL File_DoesFileNameEndWithSlash(char *pszFileName);
23: extern void File_RemoveFileNameTrailingSlashes(char *pszFileName);
1.1.1.7 root 24: extern void *File_Read(char *pszFileName, void *pAddress, long *pFileSize, const char *ppszExts[]);
1.1.1.5 root 25: extern BOOL File_Save(char *pszFileName, void *pAddress, size_t Size, BOOL bQueryOverwrite);
1.1.1.7 root 26: extern int File_Length(const char *pszFileName);
27: extern BOOL File_Exists(const char *pszFileName);
28: extern BOOL File_QueryOverwrite(const char *pszFileName);
29: extern BOOL File_FindPossibleExtFileName(char *pszFileName,const char *ppszExts[]);
30: extern void File_splitpath(const char *pSrcFileName, char *pDir, char *pName, char *Ext);
31: extern void File_makepath(char *pDestFileName, const char *pDir, const char *pName, const char *pExt);
1.1.1.3 root 32: extern void File_ShrinkName(char *pDestFileName, char *pSrcFileName, int maxlen);
1.1.1.5 root 33: extern void File_MakeAbsoluteName(char *pszFileName);
1.1.1.7 root 34: extern void File_MakeValidPathName(char *pPathName);
1.1.1.3 root 35:
36: #endif /* HATARI_FILE_H */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.