summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-03-11 09:28:49 +0000
committerJens Arnold <amiconn@rockbox.org>2006-03-11 09:28:49 +0000
commit06bc627c993b742997473bd76c75795c4b165cae (patch)
tree9d41cbb602de3ae59942c0ffc091670ef2e659f7 /apps/plugin.c
parent37f529cc3cdcc7990b2a770efec06e45c6054f36 (diff)
Removed lcd_roll() and lcd_remote_roll() functions. These functions were not really portable. Removed the only plugin that used lcd_roll(): Oscillograph. Oscilloscope offers everything that oscillograph did and more, in a portable way. * Bumped & sorted plugin API.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8995 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c25
1 files changed, 10 insertions, 15 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index ac1825180e..63097a2589 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -104,9 +104,6 @@ static const struct plugin_api rockbox_api = {
PREFIX(lcd_icon),
lcd_double_height,
#else
-#ifndef SIMULATOR
- lcd_roll,
-#endif
lcd_set_drawmode,
lcd_get_drawmode,
lcd_setfont,
@@ -155,9 +152,6 @@ static const struct plugin_api rockbox_api = {
lcd_remote_puts,
lcd_remote_puts_scroll,
lcd_remote_stop_scroll,
-#ifndef SIMULATOR
- lcd_remote_roll,
-#endif
lcd_remote_set_drawmode,
lcd_remote_get_drawmode,
lcd_remote_setfont,
@@ -245,6 +239,14 @@ static const struct plugin_api rockbox_api = {
profile_func_exit,
#endif
+#ifdef SIMULATOR
+ /* special simulator hooks */
+#if defined(HAVE_LCD_BITMAP) && LCD_DEPTH < 8
+ sim_lcd_ex_init,
+ sim_lcd_ex_update_rect,
+#endif
+#endif
+
/* strings and memory */
snprintf,
strcpy,
@@ -290,6 +292,7 @@ static const struct plugin_api rockbox_api = {
pcm_set_frequency,
pcm_is_playing,
pcm_play_pause,
+ pcm_calculate_peaks,
#endif
#endif
@@ -401,18 +404,10 @@ static const struct plugin_api rockbox_api = {
screen_dump_set_hook,
#endif
show_logo,
+ tree_get_context,
/* new stuff at the end, sort into place next time
the API gets incompatible */
- tree_get_context,
-#if defined(SIMULATOR) && defined(HAVE_LCD_BITMAP) && LCD_DEPTH < 8
- sim_lcd_ex_init,
- sim_lcd_ex_update_rect,
-#endif
-
-#if (CONFIG_CODEC == SWCODEC)
- pcm_calculate_peaks,
-#endif
};
int plugin_load(const char* plugin, void* parameter)