summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-06-22 09:34:57 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-06-22 09:34:57 +0000
commitea255fbc3a5842d200e943522cea9bd2cb701dd6 (patch)
treecb730c3b060dc3c253d64695d49a4f14a0da65d0 /apps/plugin.c
parent6e21c146f80b17e158f3f13f84afab2978367917 (diff)
downloadrockbox-ea255fbc3a5842d200e943522cea9bd2cb701dd6.zip
rockbox-ea255fbc3a5842d200e943522cea9bd2cb701dd6.tar.gz
rockbox-ea255fbc3a5842d200e943522cea9bd2cb701dd6.tar.bz2
rockbox-ea255fbc3a5842d200e943522cea9bd2cb701dd6.tar.xz
Prevent initial spinup when starting first file when in a stopped state on non-RTC targets. Fix some states that are dangerous on SWCODEC and could result in data loss. Had to make plugin API incopatible since specified numbered filename creation is enabled now on all non-RTC targets with recording; increase version and sort the items that looked like they had a place to go.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13683 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c24
1 files changed, 10 insertions, 14 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index ca0b8a2..e81ae25 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -104,6 +104,7 @@ static const struct plugin_api rockbox_api = {
lcd_get_background,
lcd_bitmap_part,
lcd_bitmap,
+ lcd_get_backdrop,
lcd_set_backdrop,
#endif
#if LCD_DEPTH == 16
@@ -217,6 +218,7 @@ static const struct plugin_api rockbox_api = {
#endif
ata_spindown,
reload_directory,
+ create_numbered_filename,
/* dir */
PREFIX(opendir),
@@ -241,6 +243,7 @@ static const struct plugin_api rockbox_api = {
&current_tick,
default_event_handler,
default_event_handler_ex,
+ threads,
create_thread,
remove_thread,
reset_poweroff_timer,
@@ -403,8 +406,12 @@ static const struct plugin_api rockbox_api = {
gui_syncstatusbar_draw,
/* options */
set_option,
+ set_bool_options,
set_int,
set_bool,
+#ifdef HAVE_LCD_COLOR
+ set_color,
+#endif
/* action handling */
get_custom_action,
@@ -470,12 +477,6 @@ static const struct plugin_api rockbox_api = {
wheel_status,
wheel_send_events,
#endif
-#if LCD_DEPTH > 1
- lcd_get_backdrop,
-#endif
-
- /* new stuff at the end, sort into place next time
- the API gets incompatible */
#ifdef IRIVER_H100_SERIES
/* Routines for the iriver_flash -plugin. */
@@ -483,7 +484,8 @@ static const struct plugin_api rockbox_api = {
detect_flashed_ramimage,
detect_flashed_romimage,
#endif
-
+ /* new stuff at the end, sort into place next time
+ the API gets incompatible */
#if NUM_CORES > 1
spinlock_init,
spinlock_lock,
@@ -492,14 +494,8 @@ static const struct plugin_api rockbox_api = {
#if (CONFIG_CODEC == SWCODEC)
codec_load_file,
- get_metadata,
get_codec_filename,
-#endif
- threads,
- create_numbered_filename,
- set_bool_options,
-#ifdef HAVE_LCD_COLOR
- set_color,
+ get_metadata,
#endif
};