summaryrefslogtreecommitdiff
path: root/apps/plugin.h
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.h
parent37f529cc3cdcc7990b2a770efec06e45c6054f36 (diff)
downloadrockbox-06bc627c993b742997473bd76c75795c4b165cae.zip
rockbox-06bc627c993b742997473bd76c75795c4b165cae.tar.gz
rockbox-06bc627c993b742997473bd76c75795c4b165cae.tar.bz2
rockbox-06bc627c993b742997473bd76c75795c4b165cae.tar.xz
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.h')
-rw-r--r--apps/plugin.h28
1 files changed, 11 insertions, 17 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 81a5862..ed4588d 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -99,12 +99,12 @@
#define PLUGIN_MAGIC 0x526F634B /* RocK */
/* increase this every time the api struct changes */
-#define PLUGIN_API_VERSION 10
+#define PLUGIN_API_VERSION 11
/* update this to latest version if a change to the api struct breaks
backwards compatibility (and please take the opportunity to sort in any
new function which are "waiting" at the end of the function table) */
-#define PLUGIN_MIN_API_VERSION 10
+#define PLUGIN_MIN_API_VERSION 11
/* plugin return codes */
enum plugin_status {
@@ -137,9 +137,6 @@ struct plugin_api {
void (*PREFIX(lcd_icon))(int icon, bool enable);
void (*lcd_double_height)(bool on);
#else
-#ifndef SIMULATOR
- void (*lcd_roll)(int pixels);
-#endif
void (*lcd_set_drawmode)(int mode);
int (*lcd_get_drawmode)(void);
void (*lcd_setfont)(int font);
@@ -200,9 +197,6 @@ struct plugin_api {
void (*lcd_remote_puts)(int x, int y, const unsigned char *string);
void (*lcd_remote_lcd_puts_scroll)(int x, int y, const unsigned char* string);
void (*lcd_remote_lcd_stop_scroll)(void);
-#ifndef SIMULATOR
- void (*lcd_remote_roll)(int pixels);
-#endif
void (*lcd_remote_set_drawmode)(int mode);
int (*lcd_remote_get_drawmode)(void);
void (*lcd_remote_setfont)(int font);
@@ -298,6 +292,14 @@ struct plugin_api {
void (*profile_func_exit)(void *this_fn, void *call_site);
#endif
+#ifdef SIMULATOR
+ /* special simulator hooks */
+#if defined(HAVE_LCD_BITMAP) && LCD_DEPTH < 8
+ void (*sim_lcd_ex_init)(int shades, unsigned long (*getpixel)(int, int));
+ void (*sim_lcd_ex_update_rect)(int x, int y, int width, int height);
+#endif
+#endif
+
/* strings and memory */
int (*snprintf)(char *buf, size_t size, const char *fmt, ...);
char* (*strcpy)(char *dst, const char *src);
@@ -344,6 +346,7 @@ struct plugin_api {
void (*pcm_set_frequency)(unsigned int frequency);
bool (*pcm_is_playing)(void);
void (*pcm_play_pause)(bool play);
+ void (*pcm_calculate_peaks)(int *left, int *right);
#endif
#endif /* !SIMULATOR */
@@ -466,16 +469,7 @@ struct plugin_api {
void (*screen_dump_set_hook)(void (*hook)(int fh));
#endif
int (*show_logo)(void);
-
struct tree_context* (*tree_get_context)(void);
-#if defined(SIMULATOR) && defined(HAVE_LCD_BITMAP) && LCD_DEPTH < 8
- void (*sim_lcd_ex_init)(int shades, unsigned long (*getpixel)(int, int));
- void (*sim_lcd_ex_update_rect)(int x, int y, int width, int height);
-#endif
-
-#if (CONFIG_CODEC == SWCODEC)
- void (*pcm_calculate_peaks)(int *left, int *right);
-#endif
/* new stuff at the end, sort into place next time
the API gets incompatible */