From ea255fbc3a5842d200e943522cea9bd2cb701dd6 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Fri, 22 Jun 2007 09:34:57 +0000 Subject: 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 --- apps/plugin.c | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'apps/plugin.c') diff --git a/apps/plugin.c b/apps/plugin.c index ca0b8a2ba6..e81ae25ed1 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 = { ¤t_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 }; -- cgit v1.2.3