diff options
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 45 |
1 files changed, 19 insertions, 26 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 72d71b6e93..d017d6394d 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -129,12 +129,12 @@ void* plugin_get_buffer(size_t *buffer_size); | |||
129 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 129 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
130 | 130 | ||
131 | /* increase this every time the api struct changes */ | 131 | /* increase this every time the api struct changes */ |
132 | #define PLUGIN_API_VERSION 149 | 132 | #define PLUGIN_API_VERSION 150 |
133 | 133 | ||
134 | /* update this to latest version if a change to the api struct breaks | 134 | /* update this to latest version if a change to the api struct breaks |
135 | backwards compatibility (and please take the opportunity to sort in any | 135 | backwards compatibility (and please take the opportunity to sort in any |
136 | new function which are "waiting" at the end of the function table) */ | 136 | new function which are "waiting" at the end of the function table) */ |
137 | #define PLUGIN_MIN_API_VERSION 147 | 137 | #define PLUGIN_MIN_API_VERSION 150 |
138 | 138 | ||
139 | /* plugin return codes */ | 139 | /* plugin return codes */ |
140 | enum plugin_status { | 140 | enum plugin_status { |
@@ -220,12 +220,20 @@ struct plugin_api { | |||
220 | int bx, int by, int bwidth, int bheight, | 220 | int bx, int by, int bwidth, int bheight, |
221 | int stride); | 221 | int stride); |
222 | #endif /* LCD_DEPTH */ | 222 | #endif /* LCD_DEPTH */ |
223 | #if defined(HAVE_LCD_MODES) && (HAVE_LCD_MODES & LCD_MODE_PAL256) | ||
224 | void (*lcd_blit_pal256)(unsigned char *src, int src_x, int src_y, int x, int y, | ||
225 | int width, int height); | ||
226 | void (*lcd_pal256_update_pal)(fb_data *palette); | ||
227 | #endif | ||
223 | void (*lcd_puts_style)(int x, int y, const unsigned char *str, int style); | 228 | void (*lcd_puts_style)(int x, int y, const unsigned char *str, int style); |
224 | void (*lcd_puts_scroll_style)(int x, int y, const unsigned char* string, | 229 | void (*lcd_puts_scroll_style)(int x, int y, const unsigned char* string, |
225 | int style); | 230 | int style); |
226 | #ifdef HAVE_LCD_INVERT | 231 | #ifdef HAVE_LCD_INVERT |
227 | void (*lcd_set_invert_display)(bool yesno); | 232 | void (*lcd_set_invert_display)(bool yesno); |
228 | #endif /* HAVE_LCD_INVERT */ | 233 | #endif /* HAVE_LCD_INVERT */ |
234 | #if defined(HAVE_LCD_MODES) | ||
235 | void (*lcd_set_mode)(int mode); | ||
236 | #endif | ||
229 | 237 | ||
230 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) | 238 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) |
231 | void (*lcd_activation_set_hook)(void (*enable_hook)(void)); | 239 | void (*lcd_activation_set_hook)(void (*enable_hook)(void)); |
@@ -723,6 +731,14 @@ struct plugin_api { | |||
723 | #ifdef HAVE_LCD_BITMAP | 731 | #ifdef HAVE_LCD_BITMAP |
724 | int (*read_bmp_file)(const char* filename, struct bitmap *bm, int maxsize, | 732 | int (*read_bmp_file)(const char* filename, struct bitmap *bm, int maxsize, |
725 | int format, const struct custom_format *cformat); | 733 | int format, const struct custom_format *cformat); |
734 | int (*read_bmp_fd)(int fd, struct bitmap *bm, int maxsize, | ||
735 | int format, const struct custom_format *cformat); | ||
736 | #ifdef HAVE_JPEG | ||
737 | int (*read_jpeg_file)(const char* filename, struct bitmap *bm, int maxsize, | ||
738 | int format, const struct custom_format *cformat); | ||
739 | int (*read_jpeg_fd)(int fd, struct bitmap *bm, int maxsize, | ||
740 | int format, const struct custom_format *cformat); | ||
741 | #endif | ||
726 | void (*screen_dump_set_hook)(void (*hook)(int fh)); | 742 | void (*screen_dump_set_hook)(void (*hook)(int fh)); |
727 | #endif | 743 | #endif |
728 | int (*show_logo)(void); | 744 | int (*show_logo)(void); |
@@ -788,32 +804,9 @@ struct plugin_api { | |||
788 | void (*semaphore_release)(struct semaphore *s); | 804 | void (*semaphore_release)(struct semaphore *s); |
789 | #endif | 805 | #endif |
790 | 806 | ||
791 | const char *appsversion; | 807 | const char *appsversion; |
792 | /* new stuff at the end, sort into place next time | 808 | /* new stuff at the end, sort into place next time |
793 | the API gets incompatible */ | 809 | the API gets incompatible */ |
794 | |||
795 | #if defined(HAVE_LCD_MODES) | ||
796 | void (*lcd_set_mode)(int mode); | ||
797 | #endif | ||
798 | |||
799 | #if defined(HAVE_LCD_MODES) | ||
800 | #if HAVE_LCD_MODES & LCD_MODE_PAL256 | ||
801 | void (*lcd_blit_pal256)(unsigned char *src, int src_x, int src_y, int x, int y, | ||
802 | int width, int height); | ||
803 | void (*lcd_pal256_update_pal)(fb_data *palette); | ||
804 | #endif | ||
805 | #endif | ||
806 | |||
807 | #ifdef HAVE_LCD_BITMAP | ||
808 | #ifdef HAVE_JPEG | ||
809 | int (*read_jpeg_file)(const char* filename, struct bitmap *bm, int maxsize, | ||
810 | int format, const struct custom_format *cformat); | ||
811 | int (*read_jpeg_fd)(int fd, struct bitmap *bm, int maxsize, | ||
812 | int format, const struct custom_format *cformat); | ||
813 | #endif | ||
814 | int (*read_bmp_fd)(int fd, struct bitmap *bm, int maxsize, | ||
815 | int format, const struct custom_format *cformat); | ||
816 | #endif | ||
817 | }; | 810 | }; |
818 | 811 | ||
819 | /* plugin header */ | 812 | /* plugin header */ |