summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2008-11-01 16:14:28 +0000
committerFrank Gevaerts <frank@gevaerts.be>2008-11-01 16:14:28 +0000
commit2f8a0081c64534da23fc0fa9cc685eb7454fd9c9 (patch)
tree84dbdbd5326cb48f43d2ebd5a4c86e992c1d5288 /apps/plugin.c
parent646cac0bde7b11fa7bcb670d1d76eec78e360485 (diff)
downloadrockbox-2f8a0081c64534da23fc0fa9cc685eb7454fd9c9.tar.gz
rockbox-2f8a0081c64534da23fc0fa9cc685eb7454fd9c9.zip
Apply FS#9500. This adds a storage_*() abstraction to replace ata_*(). To do that, it also introduces sd_*, nand_*, and mmc_*.
This should be a good first step to allow multi-driver targets, like the Elio (ATA/SD), or the D2 (NAND/SD). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18960 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 86e5c51128..e46e193129 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -38,6 +38,7 @@
38#include "option_select.h" 38#include "option_select.h"
39#include "talk.h" 39#include "talk.h"
40#include "version.h" 40#include "version.h"
41#include "storage.h"
41 42
42#if CONFIG_CHARGING 43#if CONFIG_CHARGING
43#include "power.h" 44#include "power.h"
@@ -265,13 +266,13 @@ static const struct plugin_api rockbox_api = {
265 fdprintf, 266 fdprintf,
266 read_line, 267 read_line,
267 settings_parseline, 268 settings_parseline,
268 ata_sleep, 269 storage_sleep,
269 ata_spin, 270 storage_spin,
270 ata_spindown, 271 storage_spindown,
271#if USING_ATA_CALLBACK 272#if USING_STORAGE_CALLBACK
272 register_ata_idle_func, 273 register_storage_idle_func,
273 unregister_ata_idle_func, 274 unregister_storage_idle_func,
274#endif /* USING_ATA_CALLBACK */ 275#endif /* USING_STORAGE_CALLBACK */
275 reload_directory, 276 reload_directory,
276 create_numbered_filename, 277 create_numbered_filename,
277 file_exists, 278 file_exists,