summaryrefslogtreecommitdiff
path: root/firmware/include
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/include')
-rw-r--r--firmware/include/dir.h17
-rw-r--r--firmware/include/dir_uncached.h4
2 files changed, 21 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 @@
22 22
23#include "config.h" 23#include "config.h"
24 24
25#ifdef HAVE_MULTIVOLUME
26
27/* how to name volumes, first char must be outside of legal file names,
28 a number gets appended to enumerate, if applicable */
29#ifdef HAVE_MMC
30#define VOL_NAMES "<MMC%d>"
31#define VOL_ENUM_POS 4 /* position of %d, to avoid runtime calculation */
32#elif defined(HAVE_HOTSWAP)
33#define VOL_NAMES "<microSD%d>"
34#define VOL_ENUM_POS 8 /* position of %d, to avoid runtime calculation */
35#else
36#define VOL_NAMES "<HD%d>"
37#define VOL_ENUM_POS 3
38#endif
39
40#endif
41
25#ifdef HAVE_DIRCACHE 42#ifdef HAVE_DIRCACHE
26# include "dircache.h" 43# include "dircache.h"
27# define DIR DIR_CACHED 44# define DIR DIR_CACHED
diff --git a/firmware/include/dir_uncached.h b/firmware/include/dir_uncached.h
index 575c3b67e4..dd00c2c66b 100644
--- a/firmware/include/dir_uncached.h
+++ b/firmware/include/dir_uncached.h
@@ -75,6 +75,10 @@ typedef struct {
75char *get_volume_name(int volume); 75char *get_volume_name(int volume);
76#endif 76#endif
77 77
78#ifdef HAVE_MULTIVOLUME
79 int strip_volume(const char*, char*);
80#endif
81
78#ifndef DIRFUNCTIONS_DEFINED 82#ifndef DIRFUNCTIONS_DEFINED
79 83
80extern DIR_UNCACHED* opendir_uncached(const char* name); 84extern DIR_UNCACHED* opendir_uncached(const char* name);