summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2004-10-23 09:59:53 +0000
committerJens Arnold <amiconn@rockbox.org>2004-10-23 09:59:53 +0000
commit1c841b8c403b5ed9398e20f03c4983c386ceaca9 (patch)
treec661704c03fec3609cd96d2c923ac32e956a0dd3 /apps/plugin.c
parent957cffad8d8e51e51d51d5c7e81b40519774d584 (diff)
downloadrockbox-1c841b8c403b5ed9398e20f03c4983c386ceaca9.zip
rockbox-1c841b8c403b5ed9398e20f03c4983c386ceaca9.tar.gz
rockbox-1c841b8c403b5ed9398e20f03c4983c386ceaca9.tar.bz2
rockbox-1c841b8c403b5ed9398e20f03c4983c386ceaca9.tar.xz
Removed usb_screen() from the api. All plugins should use the default event handlers instead. Added battery_level_safe(). Sorted api & bumped versions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5328 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c43
1 files changed, 21 insertions, 22 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index bf71aa1..ae698c3 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -101,6 +101,7 @@ static const struct plugin_api rockbox_api = {
#else
lcd_putsxy,
lcd_puts_style,
+ lcd_puts_scroll_style,
lcd_bitmap,
lcd_drawline,
lcd_clearline,
@@ -125,6 +126,7 @@ static const struct plugin_api rockbox_api = {
#endif
backlight_on,
backlight_off,
+ backlight_set_timeout,
splash,
/* button */
@@ -156,15 +158,18 @@ static const struct plugin_api rockbox_api = {
PREFIX(closedir),
PREFIX(readdir),
- /* kernel */
+ /* kernel/ system */
PREFIX(sleep),
yield,
- usb_screen,
&current_tick,
default_event_handler,
+ default_event_handler_ex,
create_thread,
remove_thread,
reset_poweroff_timer,
+#ifndef SIMULATOR
+ system_memory_guard,
+#endif
/* strings and memory */
snprintf,
@@ -174,6 +179,7 @@ static const struct plugin_api rockbox_api = {
strrchr,
strcmp,
strcasecmp,
+ strncasecmp,
memset,
memcpy,
#ifndef SIMULATOR
@@ -204,6 +210,12 @@ static const struct plugin_api rockbox_api = {
mpeg_status,
mpeg_has_changed_track,
mpeg_current_track,
+ mpeg_flush_and_reload_tracks,
+ mpeg_get_file_pos,
+ mpeg_get_last_header,
+#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F)
+ mpeg_set_pitch,
+#endif
/* MAS communication */
#ifndef SIMULATOR
@@ -235,34 +247,21 @@ static const struct plugin_api rockbox_api = {
debugf,
#endif
&global_settings,
- backlight_set_timeout,
mp3info,
count_mp3_frames,
create_xing_header,
+ find_next_frame,
battery_level,
-
- /* new stuff at the end, sort into place next time
- the API gets incompatible */
-
+ battery_level_safe,
#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F)
- mpeg_set_pitch,
-
peak_meter_scale_value,
- peak_meter_set_use_dbfs,
+ peak_meter_set_use_dbfs,
peak_meter_get_use_dbfs,
#endif
-#ifdef HAVE_LCD_BITMAP
- lcd_puts_scroll_style,
-#endif
- mpeg_flush_and_reload_tracks,
- strncasecmp,
- mpeg_get_file_pos,
- find_next_frame,
- mpeg_get_last_header,
-#ifndef SIMULATOR
- system_memory_guard,
-#endif
- default_event_handler_ex,
+
+ /* new stuff at the end, sort into place next time
+ the API gets incompatible */
+
};
int plugin_load(const char* plugin, void* parameter)