1ALLEGRO_FS_INTERFACE(3) Library Functions Manual ALLEGRO_FS_INTERFACE(3)
2
3
4
6 ALLEGRO_FS_INTERFACE
7
9 #include <allegro5/allegro.h>
10
11 typedef struct ALLEGRO_FS_INTERFACE ALLEGRO_FS_INTERFACE;
12
14 The available functions you can provide for a filesystem. They are:
15
16 ALLEGRO_FS_ENTRY * fs_create_entry (const char *path);
17 void fs_destroy_entry (ALLEGRO_FS_ENTRY *e);
18 const char * fs_entry_name (ALLEGRO_FS_ENTRY *e);
19 bool fs_update_entry (ALLEGRO_FS_ENTRY *e);
20 uint32_t fs_entry_mode (ALLEGRO_FS_ENTRY *e);
21 time_t fs_entry_atime (ALLEGRO_FS_ENTRY *e);
22 time_t fs_entry_mtime (ALLEGRO_FS_ENTRY *e);
23 time_t fs_entry_ctime (ALLEGRO_FS_ENTRY *e);
24 off_t fs_entry_size (ALLEGRO_FS_ENTRY *e);
25 bool fs_entry_exists (ALLEGRO_FS_ENTRY *e);
26 bool fs_remove_entry (ALLEGRO_FS_ENTRY *e);
27
28 bool fs_open_directory (ALLEGRO_FS_ENTRY *e);
29 ALLEGRO_FS_ENTRY * fs_read_directory (ALLEGRO_FS_ENTRY *e);
30 bool fs_close_directory(ALLEGRO_FS_ENTRY *e);
31
32 bool fs_filename_exists(const char *path);
33 bool fs_remove_filename(const char *path);
34 char * fs_get_current_directory(void);
35 bool fs_change_directory(const char *path);
36 bool fs_make_directory(const char *path);
37
38 ALLEGRO_FILE * fs_open_file(ALLEGRO_FS_ENTRY *e);
39
40
41
42Allegro reference manual ALLEGRO_FS_INTERFACE(3)