diff options
author | Dave Chapman <dave@dchapman.com> | 2008-01-08 01:22:14 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2008-01-08 01:22:14 +0000 |
commit | 3646c313679c4bd16c9eec98c2e35c7a7bf5c961 (patch) | |
tree | b6508cc00ae60c70c9499090fb87d97f3370c131 /apps/plugin.h | |
parent | 08e6c6bc2a90e953372e503367c406c469994da2 (diff) | |
download | rockbox-3646c313679c4bd16c9eec98c2e35c7a7bf5c961.tar.gz rockbox-3646c313679c4bd16c9eec98c2e35c7a7bf5c961.zip |
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.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index f782b7a20c..849c10bb89 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -119,12 +119,12 @@ | |||
119 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 119 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
120 | 120 | ||
121 | /* increase this every time the api struct changes */ | 121 | /* increase this every time the api struct changes */ |
122 | #define PLUGIN_API_VERSION 94 | 122 | #define PLUGIN_API_VERSION 95 |
123 | 123 | ||
124 | /* update this to latest version if a change to the api struct breaks | 124 | /* update this to latest version if a change to the api struct breaks |
125 | backwards compatibility (and please take the opportunity to sort in any | 125 | backwards compatibility (and please take the opportunity to sort in any |
126 | new function which are "waiting" at the end of the function table) */ | 126 | new function which are "waiting" at the end of the function table) */ |
127 | #define PLUGIN_MIN_API_VERSION 88 | 127 | #define PLUGIN_MIN_API_VERSION 95 |
128 | 128 | ||
129 | /* plugin return codes */ | 129 | /* plugin return codes */ |
130 | enum plugin_status { | 130 | enum plugin_status { |
@@ -267,6 +267,10 @@ struct plugin_api { | |||
267 | void (*lcd_remote_bitmap)(const fb_remote_data *src, int x, int y, int width, | 267 | void (*lcd_remote_bitmap)(const fb_remote_data *src, int x, int y, int width, |
268 | int height); | 268 | int height); |
269 | #endif | 269 | #endif |
270 | #if defined(HAVE_LCD_BITMAP) && (LCD_DEPTH < 4) && !defined(SIMULATOR) | ||
271 | void (*lcd_grey_phase_blit)(const struct grey_data *data, int bx, int by, | ||
272 | int bwidth, int bheight, int stride); | ||
273 | #endif | ||
270 | #if defined(HAVE_LCD_COLOR) | 274 | #if defined(HAVE_LCD_COLOR) |
271 | void (*lcd_yuv_blit)(unsigned char * const src[3], | 275 | void (*lcd_yuv_blit)(unsigned char * const src[3], |
272 | int src_x, int src_y, int stride, | 276 | int src_x, int src_y, int stride, |
@@ -718,11 +722,6 @@ struct plugin_api { | |||
718 | const char * (*sound_unit)(int setting); | 722 | const char * (*sound_unit)(int setting); |
719 | int (*sound_val2phys)(int setting, int value); | 723 | int (*sound_val2phys)(int setting, int value); |
720 | #endif /* CONFIG_CODEC == SWCODEC */ | 724 | #endif /* CONFIG_CODEC == SWCODEC */ |
721 | |||
722 | #if defined(HAVE_LCD_BITMAP) && (LCD_DEPTH < 4) && !defined(SIMULATOR) | ||
723 | void (*lcd_grey_phase_blit)(const struct grey_data *data, int bx, int by, | ||
724 | int bwidth, int bheight, int stride); | ||
725 | #endif | ||
726 | }; | 725 | }; |
727 | 726 | ||
728 | /* plugin header */ | 727 | /* plugin header */ |