summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index d2253b42c6..78bffe08ed 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -87,12 +87,12 @@
87#endif 87#endif
88 88
89/* increase this every time the api struct changes */ 89/* increase this every time the api struct changes */
90#define PLUGIN_API_VERSION 41 90#define PLUGIN_API_VERSION 42
91 91
92/* update this to latest version if a change to the api struct breaks 92/* update this to latest version if a change to the api struct breaks
93 backwards compatibility (and please take the opportunity to sort in any 93 backwards compatibility (and please take the opportunity to sort in any
94 new function which are "waiting" at the end of the function table) */ 94 new function which are "waiting" at the end of the function table) */
95#define PLUGIN_MIN_API_VERSION 41 95#define PLUGIN_MIN_API_VERSION 42
96 96
97/* plugin return codes */ 97/* plugin return codes */
98enum plugin_status { 98enum plugin_status {
@@ -160,17 +160,21 @@ struct plugin_api {
160 int (*lcd_getstringsize)(const unsigned char *str, int *w, int *h); 160 int (*lcd_getstringsize)(const unsigned char *str, int *w, int *h);
161 void (*lcd_drawpixel)(int x, int y); 161 void (*lcd_drawpixel)(int x, int y);
162 void (*lcd_drawline)(int x1, int y1, int x2, int y2); 162 void (*lcd_drawline)(int x1, int y1, int x2, int y2);
163 void (*lcd_drawrect)(int x, int y, int nx, int ny); 163 void (*lcd_hline)(int x1, int x2, int y);
164 void (*lcd_fillrect)(int x, int y, int nx, int ny); 164 void (*lcd_vline)(int x, int y1, int y2);
165 void (*lcd_drawrect)(int x, int y, int width, int height);
166 void (*lcd_fillrect)(int x, int y, int width, int height);
167 void (*lcd_bitmap_part)(const unsigned char *src, int src_x, int src_y,
168 int stride, int x, int y, int width, int height);
165 void (*lcd_bitmap)(const unsigned char *src, int x, int y, 169 void (*lcd_bitmap)(const unsigned char *src, int x, int y,
166 int nx, int ny, bool clear); 170 int width, int height);
167 void (*lcd_putsxy)(int x, int y, const unsigned char *string); 171 void (*lcd_putsxy)(int x, int y, const unsigned char *string);
168 void (*lcd_puts_style)(int x, int y, const unsigned char *str, int style); 172 void (*lcd_puts_style)(int x, int y, const unsigned char *str, int style);
169 void (*lcd_puts_scroll_style)(int x, int y, const unsigned char* string, 173 void (*lcd_puts_scroll_style)(int x, int y, const unsigned char* string,
170 int style); 174 int style);
171 unsigned char* lcd_framebuffer; 175 unsigned char* lcd_framebuffer;
172 void (*lcd_blit) (const unsigned char* p_data, int x, int y, int width, 176 void (*lcd_blit) (const unsigned char* data, int x, int by, int width,
173 int height, int stride); 177 int bheight, int stride);
174 void (*lcd_update)(void); 178 void (*lcd_update)(void);
175 void (*lcd_update_rect)(int x, int y, int width, int height); 179 void (*lcd_update_rect)(int x, int y, int width, int height);
176 void (*scrollbar)(int x, int y, int width, int height, int items, 180 void (*scrollbar)(int x, int y, int width, int height, int items,