summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2008-01-08 01:22:14 +0000
committerDave Chapman <dave@dchapman.com>2008-01-08 01:22:14 +0000
commit3646c313679c4bd16c9eec98c2e35c7a7bf5c961 (patch)
treeb6508cc00ae60c70c9499090fb87d97f3370c131 /apps/plugin.h
parent08e6c6bc2a90e953372e503367c406c469994da2 (diff)
downloadrockbox-3646c313679c4bd16c9eec98c2e35c7a7bf5c961.zip
rockbox-3646c313679c4bd16c9eec98c2e35c7a7bf5c961.tar.gz
rockbox-3646c313679c4bd16c9eec98c2e35c7a7bf5c961.tar.bz2
rockbox-3646c313679c4bd16c9eec98c2e35c7a7bf5c961.tar.xz
Add the viewport functions to the screens API, including a new getfont() function to return the font used by the current viewport. A change to the screens API makes the plugin API incompatible, so we bump version and sort. Also commit the test_viewports plugin (not built by default). This is some more of FS#8385.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16022 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index f782b7a..849c10b 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -119,12 +119,12 @@
#define PLUGIN_MAGIC 0x526F634B /* RocK */
/* increase this every time the api struct changes */
-#define PLUGIN_API_VERSION 94
+#define PLUGIN_API_VERSION 95
/* 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 88
+#define PLUGIN_MIN_API_VERSION 95
/* plugin return codes */
enum plugin_status {
@@ -267,6 +267,10 @@ struct plugin_api {
void (*lcd_remote_bitmap)(const fb_remote_data *src, int x, int y, int width,
int height);
#endif
+#if defined(HAVE_LCD_BITMAP) && (LCD_DEPTH < 4) && !defined(SIMULATOR)
+ void (*lcd_grey_phase_blit)(const struct grey_data *data, int bx, int by,
+ int bwidth, int bheight, int stride);
+#endif
#if defined(HAVE_LCD_COLOR)
void (*lcd_yuv_blit)(unsigned char * const src[3],
int src_x, int src_y, int stride,
@@ -718,11 +722,6 @@ struct plugin_api {
const char * (*sound_unit)(int setting);
int (*sound_val2phys)(int setting, int value);
#endif /* CONFIG_CODEC == SWCODEC */
-
-#if defined(HAVE_LCD_BITMAP) && (LCD_DEPTH < 4) && !defined(SIMULATOR)
- void (*lcd_grey_phase_blit)(const struct grey_data *data, int bx, int by,
- int bwidth, int bheight, int stride);
-#endif
};
/* plugin header */