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.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/firmware/export/mv.h b/firmware/export/mv.h
index b1d16a7267..b1c8a83008 100644
--- a/firmware/export/mv.h
+++ b/firmware/export/mv.h
@@ -27,27 +27,28 @@
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 29
30/* Drives are things like a disk, a card, a flash chip. They can have volumes on them */ 30/* Drives are things like a disk, a card, a flash chip. They can have volumes
31 on them */
31#ifdef HAVE_MULTIDRIVE 32#ifdef HAVE_MULTIDRIVE
32#define IF_MD(x) x /* optional drive parameter */ 33#define IF_MD(x...) x /* valist contents or empty */
33#define IF_MD2(x,y) x,y /* same, for a list of arguments */ 34#define IF_MD_NONVOID(x...) x /* valist contents or 'void' */
34#define IF_MD_NONVOID(x) x /* for prototype with sole volume parameter */ 35#define IF_MD_DRV(d) d /* drive argument or '0' */
35#else /* empty definitions if no multi-drive */ 36#else /* empty definitions if no multi-drive */
36#define IF_MD(x) 37#define IF_MD(x...)
37#define IF_MD2(x,y) 38#define IF_MD_NONVOID(x...) void
38#define IF_MD_NONVOID(x) void 39#define IF_MD_DRV(d) 0
39#endif 40#endif
40 41
41/* Volumes mean things that have filesystems on them, like partitions */ 42/* Volumes mean things that have filesystems on them, like partitions */
42#ifdef HAVE_MULTIVOLUME 43#ifdef HAVE_MULTIVOLUME
43#define IF_MV(x) x /* optional volume parameter */ 44#define IF_MV(x...) x /* valist contents or empty */
44#define IF_MV2(x,y) x,y /* same, for a list of arguments */ 45#define IF_MV_NONVOID(x...) x /* valist contents or 'void' */
45#define IF_MV_NONVOID(x) x /* for prototype with sole volume parameter */ 46#define IF_MV_VOL(v) v /* volume argument or '0' */
46#else /* empty definitions if no multi-volume */ 47#else /* empty definitions if no multi-volume */
47#define IF_MV(x) 48#define IF_MV(x...)
48#define IF_MV2(x,y) 49#define IF_MV_NONVOID(x...) void
49#define IF_MV_NONVOID(x) void 50#define IF_MV_VOL(v) 0
50#endif 51#endif
51 52
52 53
53#endif 54#endif /* __MV_H__ */