Annotation of hatari/src/includes/file.h, revision 1.1.1.4

1.1       root        1: /*
                      2:   Hatari
                      3: */
                      4: 
1.1.1.3   root        5: #ifndef HATARI_FILE_H
                      6: #define HATARI_FILE_H
                      7: 
1.1       root        8: /* File types */
                      9: enum {
                     10:   FILEFILTER_DISCFILES,
                     11:   FILEFILTER_ALLFILES,
                     12:   FILEFILTER_TOSROM,
                     13:   FILEFILTER_MAPFILE,
                     14:   FILEFILTER_YMFILE,
                     15:   FILEFILTER_MEMORYFILE,
                     16: };
                     17: 
1.1.1.3   root       18: #ifdef __BEOS__
                     19: #include <dirent.h>
                     20: extern int alphasort(const void *d1, const void *d2);
                     21: extern int scandir(const char *dirname,struct dirent ***namelist, int(*select) __P((struct dirent *)), int (*dcomp) __P((const void *, const void *)));
                     22: #endif  /* __BEOS__ */
                     23: 
1.1       root       24: extern void File_CleanFileName(char *pszFileName);
                     25: extern void File_AddSlashToEndFileName(char *pszFileName);
                     26: extern BOOL File_DoesFileExtensionMatch(char *pszFileName, char *pszExtension);
                     27: extern BOOL File_IsRootFileName(char *pszFileName);
                     28: extern char *File_RemoveFileNameDrive(char *pszFileName);
                     29: extern BOOL File_DoesFileNameEndWithSlash(char *pszFileName);
                     30: extern void File_RemoveFileNameTrailingSlashes(char *pszFileName);
1.1.1.4 ! root       31: extern BOOL File_FileNameIsMSAGZ(char *pszFileName);
        !            32: extern BOOL File_FileNameIsSTGZ(char *pszFileName);
        !            33: extern BOOL File_FileNameIsZIP(char *pszFileName);
1.1       root       34: extern BOOL File_FileNameIsMSA(char *pszFileName);
                     35: extern BOOL File_FileNameIsST(char *pszFileName);
                     36: extern void *File_Read(char *pszFileName, void *pAddress, long *pFileSize, char *ppszExts[]);
1.1.1.2   root       37: extern BOOL File_Save(char *pszFileName, void *pAddress,long Size,BOOL bQueryOverwrite);
1.1       root       38: extern int File_Length(char *pszFileName);
                     39: extern BOOL File_Exists(char *pszFileName);
                     40: extern BOOL File_Delete(char *pszFileName);
1.1.1.2   root       41: extern BOOL File_QueryOverwrite(char *pszFileName);
1.1       root       42: extern BOOL File_FindPossibleExtFileName(char *pszFileName,char *ppszExts[]);
1.1.1.3   root       43: extern void File_splitpath(char *pSrcFileName, char *pDir, char *pName, char *Ext);
                     44: extern void File_makepath(char *pDestFileName, char *pDir, char *pName, char *pExt);
                     45: extern void File_ShrinkName(char *pDestFileName, char *pSrcFileName, int maxlen);
                     46: 
                     47: #endif /* HATARI_FILE_H */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.