From 8b813d0b99bcda14d6101ea38cc8ebb498281675 Mon Sep 17 00:00:00 2001 From: Jörg Hohensohn Date: Sun, 7 Dec 2003 16:57:43 +0000 Subject: 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 --- apps/tree.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'apps/tree.h') 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 { }; /* 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); -- cgit v1.2.3