summaryrefslogtreecommitdiff
path: root/apps/tree.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tree.h')
-rw-r--r--apps/tree.h34
1 files changed, 19 insertions, 15 deletions
diff --git a/apps/tree.h b/apps/tree.h
index 2bd133d3e9..367a4fad00 100644
--- a/apps/tree.h
+++ b/apps/tree.h
@@ -26,23 +26,27 @@ struct entry {
26 char *name; 26 char *name;
27}; 27};
28 28
29struct filetype {
30 char* extension;
31 int tree_attr;
32 int icon;
33 int voiceclip;
34};
35
36
29/* using attribute not used by FAT */ 37/* using attribute not used by FAT */
30#define TREE_ATTR_MPA 0x0100 /* mpeg audio file */ 38#define TREE_ATTR_MPA 0x0100 /* mpeg audio file */
31#define TREE_ATTR_M3U 0x0200 /* playlist */ 39#define TREE_ATTR_M3U 0x0200 /* playlist */
32#define TREE_ATTR_WPS 0x0300 /* wps config file */ 40#define TREE_ATTR_WPS 0x0300 /* wps config file */
33#define TREE_ATTR_MOD 0x0400 /* firmware file */ 41#define TREE_ATTR_MOD 0x0400 /* firmware file */
34#define TREE_ATTR_CFG 0x0500 /* config file */ 42#define TREE_ATTR_CFG 0x0500 /* config file */
35#define TREE_ATTR_TXT 0x0600 /* text file */ 43#define TREE_ATTR_FONT 0x0600 /* font file */
36#define TREE_ATTR_FONT 0x0700 /* font file */ 44#define TREE_ATTR_LNG 0x0700 /* binary lang file */
37#define TREE_ATTR_LNG 0x0800 /* binary lang file */ 45#define TREE_ATTR_ROCK 0x0800 /* binary rockbox plugin */
38#define TREE_ATTR_ROCK 0x0900 /* binary rockbox plugin */ 46#define TREE_ATTR_BMARK 0x0900 /* book mark file */
39#define TREE_ATTR_UCL 0x0A00 /* rockbox flash image */ 47#define TREE_ATTR_MASK 0xFFC0 /* which bits tree.c uses (above) */
40#define TREE_ATTR_CH8 0x0B00 /* chip-8 game */
41#define TREE_ATTR_RVF 0x0C00 /* rockbox video file */
42#define TREE_ATTR_BMARK 0x0D00 /* book mark file */
43#define TREE_ATTR_JPEG 0x0E00 /* JPEG image */
44#define TREE_ATTR_MASK 0xFFC0 /* which bits tree.c uses (above) */
45 48
49void tree_get_filetypes(struct filetype**, int*);
46void tree_init(void); 50void tree_init(void);
47void browse_root(void); 51void browse_root(void);
48void set_current_file(char *path); 52void set_current_file(char *path);