diff options
Diffstat (limited to 'apps/tree.h')
-rw-r--r-- | apps/tree.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/tree.h b/apps/tree.h index aa8f2127f3..66e83bc8f0 100644 --- a/apps/tree.h +++ b/apps/tree.h | |||
@@ -21,6 +21,11 @@ | |||
21 | 21 | ||
22 | #include <stdbool.h> | 22 | #include <stdbool.h> |
23 | 23 | ||
24 | struct entry { | ||
25 | short attr; /* FAT attributes + file type flags */ | ||
26 | char *name; | ||
27 | }; | ||
28 | |||
24 | /* using attribute not used by FAT */ | 29 | /* using attribute not used by FAT */ |
25 | #define TREE_ATTR_MPA 0x40 /* mpeg audio file */ | 30 | #define TREE_ATTR_MPA 0x40 /* mpeg audio file */ |
26 | #define TREE_ATTR_M3U 0x80 /* playlist */ | 31 | #define TREE_ATTR_M3U 0x80 /* playlist */ |
@@ -36,7 +41,11 @@ | |||
36 | void tree_init(void); | 41 | void tree_init(void); |
37 | void browse_root(void); | 42 | void browse_root(void); |
38 | void set_current_file(char *path); | 43 | void set_current_file(char *path); |
39 | bool dirbrowse(char *root); | ||
40 | bool create_playlist(void); | 44 | bool create_playlist(void); |
45 | void resume_directory(char *dir); | ||
46 | char *getcwd(char *buf, int size); | ||
47 | void reload_directory(void); | ||
48 | struct entry* load_and_sort_directory(char *dirname, int dirfilter, | ||
49 | int *num_files, bool *buffer_full); | ||
41 | 50 | ||
42 | #endif | 51 | #endif |