diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2007-06-22 09:34:57 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2007-06-22 09:34:57 +0000 |
commit | ea255fbc3a5842d200e943522cea9bd2cb701dd6 (patch) | |
tree | cb730c3b060dc3c253d64695d49a4f14a0da65d0 /apps/plugin.c | |
parent | 6e21c146f80b17e158f3f13f84afab2978367917 (diff) | |
download | rockbox-ea255fbc3a5842d200e943522cea9bd2cb701dd6.tar.gz rockbox-ea255fbc3a5842d200e943522cea9bd2cb701dd6.zip |
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.c | 24 |
1 files changed, 10 insertions, 14 deletions
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 = { | |||
104 | lcd_get_background, | 104 | lcd_get_background, |
105 | lcd_bitmap_part, | 105 | lcd_bitmap_part, |
106 | lcd_bitmap, | 106 | lcd_bitmap, |
107 | lcd_get_backdrop, | ||
107 | lcd_set_backdrop, | 108 | lcd_set_backdrop, |
108 | #endif | 109 | #endif |
109 | #if LCD_DEPTH == 16 | 110 | #if LCD_DEPTH == 16 |
@@ -217,6 +218,7 @@ static const struct plugin_api rockbox_api = { | |||
217 | #endif | 218 | #endif |
218 | ata_spindown, | 219 | ata_spindown, |
219 | reload_directory, | 220 | reload_directory, |
221 | create_numbered_filename, | ||
220 | 222 | ||
221 | /* dir */ | 223 | /* dir */ |
222 | PREFIX(opendir), | 224 | PREFIX(opendir), |
@@ -241,6 +243,7 @@ static const struct plugin_api rockbox_api = { | |||
241 | ¤t_tick, | 243 | ¤t_tick, |
242 | default_event_handler, | 244 | default_event_handler, |
243 | default_event_handler_ex, | 245 | default_event_handler_ex, |
246 | threads, | ||
244 | create_thread, | 247 | create_thread, |
245 | remove_thread, | 248 | remove_thread, |
246 | reset_poweroff_timer, | 249 | reset_poweroff_timer, |
@@ -403,8 +406,12 @@ static const struct plugin_api rockbox_api = { | |||
403 | gui_syncstatusbar_draw, | 406 | gui_syncstatusbar_draw, |
404 | /* options */ | 407 | /* options */ |
405 | set_option, | 408 | set_option, |
409 | set_bool_options, | ||
406 | set_int, | 410 | set_int, |
407 | set_bool, | 411 | set_bool, |
412 | #ifdef HAVE_LCD_COLOR | ||
413 | set_color, | ||
414 | #endif | ||
408 | 415 | ||
409 | /* action handling */ | 416 | /* action handling */ |
410 | get_custom_action, | 417 | get_custom_action, |
@@ -470,12 +477,6 @@ static const struct plugin_api rockbox_api = { | |||
470 | wheel_status, | 477 | wheel_status, |
471 | wheel_send_events, | 478 | wheel_send_events, |
472 | #endif | 479 | #endif |
473 | #if LCD_DEPTH > 1 | ||
474 | lcd_get_backdrop, | ||
475 | #endif | ||
476 | |||
477 | /* new stuff at the end, sort into place next time | ||
478 | the API gets incompatible */ | ||
479 | 480 | ||
480 | #ifdef IRIVER_H100_SERIES | 481 | #ifdef IRIVER_H100_SERIES |
481 | /* Routines for the iriver_flash -plugin. */ | 482 | /* Routines for the iriver_flash -plugin. */ |
@@ -483,7 +484,8 @@ static const struct plugin_api rockbox_api = { | |||
483 | detect_flashed_ramimage, | 484 | detect_flashed_ramimage, |
484 | detect_flashed_romimage, | 485 | detect_flashed_romimage, |
485 | #endif | 486 | #endif |
486 | 487 | /* new stuff at the end, sort into place next time | |
488 | the API gets incompatible */ | ||
487 | #if NUM_CORES > 1 | 489 | #if NUM_CORES > 1 |
488 | spinlock_init, | 490 | spinlock_init, |
489 | spinlock_lock, | 491 | spinlock_lock, |
@@ -492,14 +494,8 @@ static const struct plugin_api rockbox_api = { | |||
492 | 494 | ||
493 | #if (CONFIG_CODEC == SWCODEC) | 495 | #if (CONFIG_CODEC == SWCODEC) |
494 | codec_load_file, | 496 | codec_load_file, |
495 | get_metadata, | ||
496 | get_codec_filename, | 497 | get_codec_filename, |
497 | #endif | 498 | get_metadata, |
498 | threads, | ||
499 | create_numbered_filename, | ||
500 | set_bool_options, | ||
501 | #ifdef HAVE_LCD_COLOR | ||
502 | set_color, | ||
503 | #endif | 499 | #endif |
504 | }; | 500 | }; |
505 | 501 | ||