summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2005-04-15 12:55:31 +0000
committerChristian Gmeiner <christian.gmeiner@gmail.com>2005-04-15 12:55:31 +0000
commitc63430e93523c090cd12002ad00d1cdb078ba07d (patch)
tree7596247baa347c6306a9510271d6f947c26e42b3 /apps
parent7e01562114e447212680054acb20bf4a51e15321 (diff)
downloadrockbox-c63430e93523c090cd12002ad00d1cdb078ba07d.tar.gz
rockbox-c63430e93523c090cd12002ad00d1cdb078ba07d.tar.bz2
rockbox-c63430e93523c090cd12002ad00d1cdb078ba07d.zip
IRiver: extended plugin api with current remote lcd functions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6295 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugin.c13
-rw-r--r--apps/plugin.h13
2 files changed, 25 insertions, 1 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 7a9875ac2c..e9274add1a 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -54,6 +54,10 @@
#include "widgets.h"
#endif
+#ifdef HAVE_REMOTE_LCD
+#include "lcd-remote.h"
+#endif
+
#if MEM >= 32
#define PLUGIN_BUFFER_SIZE 0xC0000
#else
@@ -128,7 +132,14 @@ static const struct plugin_api rockbox_api = {
backlight_off,
backlight_set_timeout,
splash,
-
+#ifdef HAVE_REMOTE_LCD
+ lcd_remote_clear_display,
+ lcd_remote_backlight_on,
+ lcd_remote_backlight_off,
+ lcd_remote_set_contrast,
+ lcd_remote_update,
+ &lcd_remote_framebuffer[0][0],
+#endif
/* button */
button_get,
button_get_w_tmo,
diff --git a/apps/plugin.h b/apps/plugin.h
index 9fd9a9421c..36804de020 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -53,6 +53,10 @@
#endif
#include "sound.h"
+#ifdef HAVE_REMOTE_LCD
+#include "lcd-remote.h"
+#endif
+
#ifdef PLUGIN
#if defined(DEBUG) || defined(SIMULATOR)
#undef DEBUGF
@@ -170,6 +174,15 @@ struct plugin_api {
void (*backlight_set_timeout)(int index);
void (*splash)(int ticks, bool center, const char *fmt, ...);
+#ifdef HAVE_REMOTE_LCD
+ void (*remote_clear_display)(void);
+ void (*remote_backlight_on)(void);
+ void (*remote_backlight_off)(void);
+ void (*remote_set_contrast)(int val);
+ void (*remote_update)(void);
+ unsigned char* lcd_remote_framebuffer;
+#endif
+
/* button */
long (*button_get)(bool block);
long (*button_get_w_tmo)(int ticks);