diff options
author | Jörg Hohensohn <hohensoh@rockbox.org> | 2003-12-07 16:57:43 +0000 |
---|---|---|
committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2003-12-07 16:57:43 +0000 |
commit | 8b813d0b99bcda14d6101ea38cc8ebb498281675 (patch) | |
tree | 7a5b616628fa8fdcb945923d0697669c80cee758 /apps/tree.h | |
parent | 7b7fc1e95f9ac3336dcc7212dab06b06dd3e1e07 (diff) | |
download | rockbox-8b813d0b99bcda14d6101ea38cc8ebb498281675.tar.gz rockbox-8b813d0b99bcda14d6101ea38cc8ebb498281675.zip |
table-driven internal handling of file types, so we can have many of them
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4115 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.h')
-rw-r--r-- | apps/tree.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/apps/tree.h b/apps/tree.h index 3086c8914b..fdc9641917 100644 --- a/apps/tree.h +++ b/apps/tree.h | |||
@@ -27,18 +27,18 @@ struct entry { | |||
27 | }; | 27 | }; |
28 | 28 | ||
29 | /* using attribute not used by FAT */ | 29 | /* using attribute not used by FAT */ |
30 | #define TREE_ATTR_MPA 0x40 /* mpeg audio file */ | 30 | #define TREE_ATTR_MPA 0x0100 /* mpeg audio file */ |
31 | #define TREE_ATTR_M3U 0x80 /* playlist */ | 31 | #define TREE_ATTR_M3U 0x0200 /* playlist */ |
32 | #define TREE_ATTR_WPS 0x100 /* wps config file */ | 32 | #define TREE_ATTR_WPS 0x0300 /* wps config file */ |
33 | #define TREE_ATTR_MOD 0x200 /* firmware file */ | 33 | #define TREE_ATTR_MOD 0x0400 /* firmware file */ |
34 | #define TREE_ATTR_CFG 0x400 /* config file */ | 34 | #define TREE_ATTR_CFG 0x0500 /* config file */ |
35 | #define TREE_ATTR_TXT 0x500 /* text file */ | 35 | #define TREE_ATTR_TXT 0x0600 /* text file */ |
36 | #define TREE_ATTR_FONT 0x800 /* font file */ | 36 | #define TREE_ATTR_FONT 0x0700 /* font file */ |
37 | #define TREE_ATTR_LNG 0x1000 /* binary lang file */ | 37 | #define TREE_ATTR_LNG 0x0800 /* binary lang file */ |
38 | #define TREE_ATTR_ROCK 0x2000 /* binary rockbox plugin */ | 38 | #define TREE_ATTR_ROCK 0x0900 /* binary rockbox plugin */ |
39 | #define TREE_ATTR_UCL 0x4000 /* rockbox flash image */ | 39 | #define TREE_ATTR_UCL 0x0A00 /* rockbox flash image */ |
40 | #define TREE_ATTR_CH8 0x8000 /* chip-8 game */ | 40 | #define TREE_ATTR_CH8 0x0B00 /* chip-8 game */ |
41 | #define TREE_ATTR_MASK 0xffd0 /* which bits tree.c uses (above + DIR) */ | 41 | #define TREE_ATTR_MASK 0xFFC0 /* which bits tree.c uses (above) */ |
42 | 42 | ||
43 | void tree_init(void); | 43 | void tree_init(void); |
44 | void browse_root(void); | 44 | void browse_root(void); |