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.zip rockbox-8b813d0b99bcda14d6101ea38cc8ebb498281675.tar.gz rockbox-8b813d0b99bcda14d6101ea38cc8ebb498281675.tar.bz2 rockbox-8b813d0b99bcda14d6101ea38cc8ebb498281675.tar.xz | |
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 3086c89..fdc9641 100644 --- a/apps/tree.h +++ b/apps/tree.h @@ -27,18 +27,18 @@ struct entry { }; /* using attribute not used by FAT */ -#define TREE_ATTR_MPA 0x40 /* mpeg audio file */ -#define TREE_ATTR_M3U 0x80 /* playlist */ -#define TREE_ATTR_WPS 0x100 /* wps config file */ -#define TREE_ATTR_MOD 0x200 /* firmware file */ -#define TREE_ATTR_CFG 0x400 /* config file */ -#define TREE_ATTR_TXT 0x500 /* text file */ -#define TREE_ATTR_FONT 0x800 /* font file */ -#define TREE_ATTR_LNG 0x1000 /* binary lang file */ -#define TREE_ATTR_ROCK 0x2000 /* binary rockbox plugin */ -#define TREE_ATTR_UCL 0x4000 /* rockbox flash image */ -#define TREE_ATTR_CH8 0x8000 /* chip-8 game */ -#define TREE_ATTR_MASK 0xffd0 /* which bits tree.c uses (above + DIR) */ +#define TREE_ATTR_MPA 0x0100 /* mpeg audio file */ +#define TREE_ATTR_M3U 0x0200 /* playlist */ +#define TREE_ATTR_WPS 0x0300 /* wps config file */ +#define TREE_ATTR_MOD 0x0400 /* firmware file */ +#define TREE_ATTR_CFG 0x0500 /* config file */ +#define TREE_ATTR_TXT 0x0600 /* text file */ +#define TREE_ATTR_FONT 0x0700 /* font file */ +#define TREE_ATTR_LNG 0x0800 /* binary lang file */ +#define TREE_ATTR_ROCK 0x0900 /* binary rockbox plugin */ +#define TREE_ATTR_UCL 0x0A00 /* rockbox flash image */ +#define TREE_ATTR_CH8 0x0B00 /* chip-8 game */ +#define TREE_ATTR_MASK 0xFFC0 /* which bits tree.c uses (above) */ void tree_init(void); void browse_root(void); |