diff options
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 608009d549..339afe93a8 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -66,7 +66,7 @@ | |||
66 | #include "timer.h" | 66 | #include "timer.h" |
67 | #include "playlist.h" | 67 | #include "playlist.h" |
68 | #ifdef HAVE_LCD_BITMAP | 68 | #ifdef HAVE_LCD_BITMAP |
69 | #include "widgets.h" | 69 | #include "scrollbar.h" |
70 | #endif | 70 | #endif |
71 | #include "menu.h" | 71 | #include "menu.h" |
72 | #include "rbunicode.h" | 72 | #include "rbunicode.h" |
@@ -107,12 +107,12 @@ | |||
107 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 107 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
108 | 108 | ||
109 | /* increase this every time the api struct changes */ | 109 | /* increase this every time the api struct changes */ |
110 | #define PLUGIN_API_VERSION 36 | 110 | #define PLUGIN_API_VERSION 37 |
111 | 111 | ||
112 | /* update this to latest version if a change to the api struct breaks | 112 | /* update this to latest version if a change to the api struct breaks |
113 | backwards compatibility (and please take the opportunity to sort in any | 113 | backwards compatibility (and please take the opportunity to sort in any |
114 | new function which are "waiting" at the end of the function table) */ | 114 | new function which are "waiting" at the end of the function table) */ |
115 | #define PLUGIN_MIN_API_VERSION 34 | 115 | #define PLUGIN_MIN_API_VERSION 37 |
116 | 116 | ||
117 | /* plugin return codes */ | 117 | /* plugin return codes */ |
118 | enum plugin_status { | 118 | enum plugin_status { |
@@ -169,6 +169,7 @@ struct plugin_api { | |||
169 | int stride, int x, int y, int width, int height); | 169 | int stride, int x, int y, int width, int height); |
170 | void (*lcd_bitmap)(const fb_data *src, int x, int y, int width, | 170 | void (*lcd_bitmap)(const fb_data *src, int x, int y, int width, |
171 | int height); | 171 | int height); |
172 | void (*lcd_set_backdrop)(fb_data* backdrop); | ||
172 | #endif | 173 | #endif |
173 | #if LCD_DEPTH == 16 | 174 | #if LCD_DEPTH == 16 |
174 | void (*lcd_bitmap_transparent_part)(const fb_data *src, | 175 | void (*lcd_bitmap_transparent_part)(const fb_data *src, |
@@ -189,9 +190,10 @@ struct plugin_api { | |||
189 | int bheight, int stride); | 190 | int bheight, int stride); |
190 | void (*lcd_update)(void); | 191 | void (*lcd_update)(void); |
191 | void (*lcd_update_rect)(int x, int y, int width, int height); | 192 | void (*lcd_update_rect)(int x, int y, int width, int height); |
192 | void (*scrollbar)(int x, int y, int width, int height, int items, | 193 | void (*gui_scrollbar_draw)(struct screen * screen, int x, int y, |
193 | int min_shown, int max_shown, int orientation); | 194 | int width, int height, int items, |
194 | void (*checkbox)(int x, int y, int width, int height, bool checked); | 195 | int min_shown, int max_shown, |
196 | unsigned flags); | ||
195 | struct font* (*font_get)(int font); | 197 | struct font* (*font_get)(int font); |
196 | int (*font_getstringsize)(const unsigned char *str, int *w, int *h, | 198 | int (*font_getstringsize)(const unsigned char *str, int *w, int *h, |
197 | int fontnumber); | 199 | int fontnumber); |
@@ -579,9 +581,7 @@ struct plugin_api { | |||
579 | #endif /* HAVE_RECORDING */ | 581 | #endif /* HAVE_RECORDING */ |
580 | #endif /* CONFIG_CODEC == SWCODEC */ | 582 | #endif /* CONFIG_CODEC == SWCODEC */ |
581 | 583 | ||
582 | #if LCD_DEPTH > 1 | 584 | |
583 | void (*lcd_set_backdrop)(fb_data* backdrop); | ||
584 | #endif | ||
585 | 585 | ||
586 | #ifdef IRAM_STEAL | 586 | #ifdef IRAM_STEAL |
587 | void (*plugin_iram_init)(char *iramstart, char *iramcopy, size_t iram_size, | 587 | void (*plugin_iram_init)(char *iramstart, char *iramcopy, size_t iram_size, |