1
0
Fork 0
forked from len0rd/rockbox

IRiver: extended plugin api with current remote lcd functions

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6295 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Christian Gmeiner 2005-04-15 12:55:31 +00:00
parent 7e01562114
commit c63430e935
3 changed files with 26 additions and 1 deletions

View file

@ -54,6 +54,10 @@
#include "widgets.h" #include "widgets.h"
#endif #endif
#ifdef HAVE_REMOTE_LCD
#include "lcd-remote.h"
#endif
#if MEM >= 32 #if MEM >= 32
#define PLUGIN_BUFFER_SIZE 0xC0000 #define PLUGIN_BUFFER_SIZE 0xC0000
#else #else
@ -128,7 +132,14 @@ static const struct plugin_api rockbox_api = {
backlight_off, backlight_off,
backlight_set_timeout, backlight_set_timeout,
splash, 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 */
button_get, button_get,
button_get_w_tmo, button_get_w_tmo,

View file

@ -53,6 +53,10 @@
#endif #endif
#include "sound.h" #include "sound.h"
#ifdef HAVE_REMOTE_LCD
#include "lcd-remote.h"
#endif
#ifdef PLUGIN #ifdef PLUGIN
#if defined(DEBUG) || defined(SIMULATOR) #if defined(DEBUG) || defined(SIMULATOR)
#undef DEBUGF #undef DEBUGF
@ -170,6 +174,15 @@ struct plugin_api {
void (*backlight_set_timeout)(int index); void (*backlight_set_timeout)(int index);
void (*splash)(int ticks, bool center, const char *fmt, ...); 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 */ /* button */
long (*button_get)(bool block); long (*button_get)(bool block);
long (*button_get_w_tmo)(int ticks); long (*button_get_w_tmo)(int ticks);

View file

@ -40,6 +40,7 @@ extern void lcd_remote_set_invert_display(bool yesno);
extern int lcd_remote_default_contrast(void); extern int lcd_remote_default_contrast(void);
extern void lcd_remote_bitmap (const unsigned char *src, int x, int y, extern void lcd_remote_bitmap (const unsigned char *src, int x, int y,
int nx, int ny, bool clear); int nx, int ny, bool clear);
extern void lcd_remote_update(void);
#endif #endif
#endif #endif