summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-07-28 07:35:45 +0000
committerJens Arnold <amiconn@rockbox.org>2006-07-28 07:35:45 +0000
commit05ddd9a44eb565e936274b6f73fc76f7476113a7 (patch)
tree0c2a5a8db4c86196deb06615b246d66e920784b7 /apps/plugin.h
parentcb36fec3922cb1317bdb06a6497370f188694d4e (diff)
downloadrockbox-05ddd9a44eb565e936274b6f73fc76f7476113a7.zip
rockbox-05ddd9a44eb565e936274b6f73fc76f7476113a7.tar.gz
rockbox-05ddd9a44eb565e936274b6f73fc76f7476113a7.tar.bz2
rockbox-05ddd9a44eb565e936274b6f73fc76f7476113a7.tar.xz
X5 remote LCD drawing. This will break target linking atm - lcd_remote_update[_rect]() are not yet implemented.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10347 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 3cd3fa6..0187de8 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -104,7 +104,7 @@
#define PLUGIN_MAGIC 0x526F634B /* RocK */
/* increase this every time the api struct changes */
-#define PLUGIN_API_VERSION 24
+#define PLUGIN_API_VERSION 25
/* update this to latest version if a change to the api struct breaks
backwards compatibility (and please take the opportunity to sort in any
@@ -221,7 +221,7 @@ struct plugin_api {
void (*lcd_remote_puts_style)(int x, int y, const unsigned char *str, int style);
void (*lcd_remote_puts_scroll_style)(int x, int y, const unsigned char* string,
int style);
- unsigned char* lcd_remote_framebuffer;
+ fb_remote_data* lcd_remote_framebuffer;
void (*lcd_remote_update)(void);
void (*lcd_remote_update_rect)(int x, int y, int width, int height);
@@ -529,6 +529,16 @@ struct plugin_api {
const unsigned char *(*font_get_bits)( struct font *pf, unsigned short char_code );
struct font* (*font_load)(const char *path);
#endif
+#if defined(HAVE_REMOTE_LCD) && (LCD_REMOTE_DEPTH > 1)
+ void (*lcd_remote_set_foreground)(unsigned foreground);
+ unsigned (*lcd_remote_get_foreground)(void);
+ void (*lcd_remote_set_background)(unsigned foreground);
+ unsigned (*lcd_remote_get_background)(void);
+ void (*lcd_remote_bitmap_part)(const fb_remote_data *src, int src_x, int src_y,
+ int stride, int x, int y, int width, int height);
+ void (*lcd_remote_bitmap)(const fb_remote_data *src, int x, int y, int width,
+ int height);
+#endif
};
/* plugin header */