summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2014-02-22 23:17:16 +0100
committerThomas Martitz <kugel@rockbox.org>2014-02-23 20:23:52 +0100
commit46137ebd4d59d7a91d0b8d98d846a3fd2ec70f5c (patch)
treef7e9762b88973d363f17a0758da5aa3beeb8dc27 /firmware
parent0f928f87850153a38c7e6cfafd283ce4f52a0666 (diff)
downloadrockbox-46137ebd4d59d7a91d0b8d98d846a3fd2ec70f5c.tar.gz
rockbox-46137ebd4d59d7a91d0b8d98d846a3fd2ec70f5c.zip
simulator: Fully simulate external storage.
The external storage will be created during make install, as simext folder in the build directory. Upon pressing the e key the sim will mount (virtually ) this into the root directory. It can be accessed in the same way as an sd/mmc card on real targets. This requires quite some path trickery in io.c. Change-Id: I2fa9070a3146101ec5655b5b4115ca349d1d4bf4
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/disk.h5
-rw-r--r--firmware/export/mv.h6
2 files changed, 6 insertions, 5 deletions
diff --git a/firmware/export/disk.h b/firmware/export/disk.h
index b97ec11039..8d6b41b5bd 100644
--- a/firmware/export/disk.h
+++ b/firmware/export/disk.h
@@ -50,9 +50,4 @@ int disk_unmount(int drive);
50int disk_get_sector_multiplier(IF_MD_NONVOID(int drive)); 50int disk_get_sector_multiplier(IF_MD_NONVOID(int drive));
51#endif 51#endif
52 52
53#ifdef HAVE_HOTSWAP
54bool volume_removable(int volume);
55bool volume_present(int volume);
56#endif
57
58#endif 53#endif
diff --git a/firmware/export/mv.h b/firmware/export/mv.h
index 0d98ed1211..05c9c6349f 100644
--- a/firmware/export/mv.h
+++ b/firmware/export/mv.h
@@ -56,6 +56,12 @@
56#define VOL_NAMES "<HD%d>" 56#define VOL_NAMES "<HD%d>"
57#define VOL_ENUM_POS 3 57#define VOL_ENUM_POS 3
58#endif /* CONFIG_STORAGE */ 58#endif /* CONFIG_STORAGE */
59
60#ifdef HAVE_HOTSWAP
61bool volume_removable(int volume);
62bool volume_present(int volume);
63#endif
64
59#else /* empty definitions if no multi-volume */ 65#else /* empty definitions if no multi-volume */
60#define IF_MV(x...) 66#define IF_MV(x...)
61#define IF_MV_NONVOID(x...) void 67#define IF_MV_NONVOID(x...) void