32 |
32 |
33 #define PHYSFS_DECL __EXPORT__ |
33 #define PHYSFS_DECL __EXPORT__ |
34 |
34 |
35 typedef enum PHYSFS_FileType |
35 typedef enum PHYSFS_FileType |
36 { |
36 { |
37 PHYSFS_FILETYPE_REGULAR, |
37 PHYSFS_FILETYPE_REGULAR, |
38 PHYSFS_FILETYPE_DIRECTORY, |
38 PHYSFS_FILETYPE_DIRECTORY, |
39 PHYSFS_FILETYPE_SYMLINK, |
39 PHYSFS_FILETYPE_SYMLINK, |
40 PHYSFS_FILETYPE_OTHER |
40 PHYSFS_FILETYPE_OTHER |
41 } PHYSFS_FileType; |
41 } PHYSFS_FileType; |
42 |
42 |
43 typedef struct PHYSFS_Stat |
43 typedef struct PHYSFS_Stat |
44 { |
44 { |
45 PHYSFS_sint64 filesize; |
45 PHYSFS_sint64 filesize; |
46 PHYSFS_sint64 modtime; |
46 PHYSFS_sint64 modtime; |
47 PHYSFS_sint64 createtime; |
47 PHYSFS_sint64 createtime; |
48 PHYSFS_sint64 accesstime; |
48 PHYSFS_sint64 accesstime; |
49 PHYSFS_FileType filetype; |
49 PHYSFS_FileType filetype; |
50 int readonly; |
50 int readonly; |
51 } PHYSFS_Stat; |
51 } PHYSFS_Stat; |
52 |
52 |
53 PHYSFS_DECL int PHYSFS_stat(const char *fname, PHYSFS_Stat *stat); |
53 PHYSFS_DECL int PHYSFS_stat(const char *fname, PHYSFS_Stat *stat); |
54 |
54 |
55 PHYSFS_DECL PHYSFS_sint64 PHYSFS_readBytes(PHYSFS_File *handle, void *buffer, |
55 PHYSFS_DECL PHYSFS_sint64 PHYSFS_readBytes(PHYSFS_File *handle, void *buffer, |