diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2008-03-11 19:39:26 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2008-03-11 19:39:26 +0000 |
commit | 52d827a26dec8bc4967cf3c2984a10ace114fa21 (patch) | |
tree | 83b9660b904934a62df38ee0ed138c66f3cdebb1 /firmware/include/dir.h | |
parent | afde7f74d4325c3a5a6883167c1f74f4fb689f90 (diff) |
FS#7598 - Dircache support for multivolume targets (by Phil Light).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16632 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/include/dir.h')
-rw-r--r-- | firmware/include/dir.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/firmware/include/dir.h b/firmware/include/dir.h index 4327b91682..6433f1d2ba 100644 --- a/firmware/include/dir.h +++ b/firmware/include/dir.h @@ -22,6 +22,23 @@ #include "config.h" +#ifdef HAVE_MULTIVOLUME + +/* how to name volumes, first char must be outside of legal file names, + a number gets appended to enumerate, if applicable */ +#ifdef HAVE_MMC +#define VOL_NAMES "<MMC%d>" +#define VOL_ENUM_POS 4 /* position of %d, to avoid runtime calculation */ +#elif defined(HAVE_HOTSWAP) +#define VOL_NAMES "<microSD%d>" +#define VOL_ENUM_POS 8 /* position of %d, to avoid runtime calculation */ +#else +#define VOL_NAMES "<HD%d>" +#define VOL_ENUM_POS 3 +#endif + +#endif + #ifdef HAVE_DIRCACHE # include "dircache.h" # define DIR DIR_CACHED |