summaryrefslogtreecommitdiff
path: root/firmware/export/mv.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/mv.h')
-rw-r--r--firmware/export/mv.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/firmware/export/mv.h b/firmware/export/mv.h
index fda650c7e9..b1d16a7267 100644
--- a/firmware/export/mv.h
+++ b/firmware/export/mv.h
@@ -26,16 +26,28 @@
26 26
27/* FixMe: These macros are a bit nasty and perhaps misplaced here. 27/* FixMe: These macros are a bit nasty and perhaps misplaced here.
28 We'll get rid of them once decided on how to proceed with multivolume. */ 28 We'll get rid of them once decided on how to proceed with multivolume. */
29
30/* Drives are things like a disk, a card, a flash chip. They can have volumes on them */
31#ifdef HAVE_MULTIDRIVE
32#define IF_MD(x) x /* optional drive parameter */
33#define IF_MD2(x,y) x,y /* same, for a list of arguments */
34#define IF_MD_NONVOID(x) x /* for prototype with sole volume parameter */
35#else /* empty definitions if no multi-drive */
36#define IF_MD(x)
37#define IF_MD2(x,y)
38#define IF_MD_NONVOID(x) void
39#endif
40
41/* Volumes mean things that have filesystems on them, like partitions */
29#ifdef HAVE_MULTIVOLUME 42#ifdef HAVE_MULTIVOLUME
30#define IF_MV(x) x /* optional volume/drive parameter */ 43#define IF_MV(x) x /* optional volume parameter */
31#define IF_MV2(x,y) x,y /* same, for a list of arguments */ 44#define IF_MV2(x,y) x,y /* same, for a list of arguments */
32#define IF_MV_NONVOID(x) x /* for prototype with sole volume parameter */ 45#define IF_MV_NONVOID(x) x /* for prototype with sole volume parameter */
33#define NUM_VOLUMES 2
34#else /* empty definitions if no multi-volume */ 46#else /* empty definitions if no multi-volume */
35#define IF_MV(x) 47#define IF_MV(x)
36#define IF_MV2(x,y) 48#define IF_MV2(x,y)
37#define IF_MV_NONVOID(x) void 49#define IF_MV_NONVOID(x) void
38#define NUM_VOLUMES 1
39#endif 50#endif
40 51
52
41#endif 53#endif