summaryrefslogtreecommitdiff
path: root/apps/tree.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tree.h')
-rw-r--r--apps/tree.h11
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
24struct 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 @@
36void tree_init(void); 41void tree_init(void);
37void browse_root(void); 42void browse_root(void);
38void set_current_file(char *path); 43void set_current_file(char *path);
39bool dirbrowse(char *root);
40bool create_playlist(void); 44bool create_playlist(void);
45void resume_directory(char *dir);
46char *getcwd(char *buf, int size);
47void reload_directory(void);
48struct entry* load_and_sort_directory(char *dirname, int dirfilter,
49 int *num_files, bool *buffer_full);
41 50
42#endif 51#endif