diff options
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 42 |
1 files changed, 20 insertions, 22 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 68916b8001..6d2b6e5bf0 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -94,12 +94,12 @@ | |||
94 | #endif | 94 | #endif |
95 | 95 | ||
96 | /* increase this every time the api struct changes */ | 96 | /* increase this every time the api struct changes */ |
97 | #define PLUGIN_API_VERSION 40 | 97 | #define PLUGIN_API_VERSION 41 |
98 | 98 | ||
99 | /* update this to latest version if a change to the api struct breaks | 99 | /* update this to latest version if a change to the api struct breaks |
100 | backwards compatibility (and please take the opportunity to sort in any | 100 | backwards compatibility (and please take the opportunity to sort in any |
101 | new function which are "waiting" at the end of the function table) */ | 101 | new function which are "waiting" at the end of the function table) */ |
102 | #define PLUGIN_MIN_API_VERSION 40 | 102 | #define PLUGIN_MIN_API_VERSION 41 |
103 | 103 | ||
104 | /* plugin return codes */ | 104 | /* plugin return codes */ |
105 | enum plugin_status { | 105 | enum plugin_status { |
@@ -144,11 +144,11 @@ struct plugin_api { | |||
144 | int (*plugin_test)(int api_version, int model, int memsize); | 144 | int (*plugin_test)(int api_version, int model, int memsize); |
145 | 145 | ||
146 | /* lcd */ | 146 | /* lcd */ |
147 | void (*lcd_set_contrast)(int x); | ||
147 | void (*lcd_clear_display)(void); | 148 | void (*lcd_clear_display)(void); |
148 | void (*lcd_puts)(int x, int y, const unsigned char *string); | 149 | void (*lcd_puts)(int x, int y, const unsigned char *string); |
149 | void (*lcd_puts_scroll)(int x, int y, const unsigned char* string); | 150 | void (*lcd_puts_scroll)(int x, int y, const unsigned char* string); |
150 | void (*lcd_stop_scroll)(void); | 151 | void (*lcd_stop_scroll)(void); |
151 | void (*lcd_set_contrast)(int x); | ||
152 | #ifdef HAVE_LCD_CHARCELLS | 152 | #ifdef HAVE_LCD_CHARCELLS |
153 | void (*lcd_define_pattern)(int which,const char *pattern); | 153 | void (*lcd_define_pattern)(int which,const char *pattern); |
154 | unsigned char (*lcd_get_locked_pattern)(void); | 154 | unsigned char (*lcd_get_locked_pattern)(void); |
@@ -158,34 +158,32 @@ struct plugin_api { | |||
158 | void (*lcd_remove_cursor)(void); | 158 | void (*lcd_remove_cursor)(void); |
159 | void (*PREFIX(lcd_icon))(int icon, bool enable); | 159 | void (*PREFIX(lcd_icon))(int icon, bool enable); |
160 | #else | 160 | #else |
161 | #ifndef SIMULATOR | ||
162 | void (*lcd_roll)(int pixels); | ||
163 | #endif | ||
164 | void (*lcd_set_drawmode)(int mode); | ||
165 | int (*lcd_get_drawmode)(void); | ||
166 | void (*lcd_setfont)(int font); | ||
167 | int (*lcd_getstringsize)(const unsigned char *str, int *w, int *h); | ||
168 | void (*lcd_drawpixel)(int x, int y); | ||
169 | void (*lcd_drawline)(int x1, int y1, int x2, int y2); | ||
170 | void (*lcd_drawrect)(int x, int y, int nx, int ny); | ||
171 | void (*lcd_fillrect)(int x, int y, int nx, int ny); | ||
172 | void (*lcd_bitmap)(const unsigned char *src, int x, int y, | ||
173 | int nx, int ny, bool clear); | ||
161 | void (*lcd_putsxy)(int x, int y, const unsigned char *string); | 174 | void (*lcd_putsxy)(int x, int y, const unsigned char *string); |
162 | void (*lcd_puts_style)(int x, int y, const unsigned char *str, int style); | 175 | void (*lcd_puts_style)(int x, int y, const unsigned char *str, int style); |
163 | void (*lcd_puts_scroll_style)(int x, int y, const unsigned char* string, | 176 | void (*lcd_puts_scroll_style)(int x, int y, const unsigned char* string, |
164 | int style); | 177 | int style); |
165 | void (*lcd_bitmap)(const unsigned char *src, int x, int y, | 178 | unsigned char* lcd_framebuffer; |
166 | int nx, int ny, bool clear); | 179 | void (*lcd_blit) (const unsigned char* p_data, int x, int y, int width, |
167 | void (*lcd_drawline)(int x1, int y1, int x2, int y2); | 180 | int height, int stride); |
168 | void (*lcd_clearline)(int x1, int y1, int x2, int y2); | ||
169 | void (*lcd_drawpixel)(int x, int y); | ||
170 | void (*lcd_clearpixel)(int x, int y); | ||
171 | void (*lcd_setfont)(int font); | ||
172 | struct font* (*font_get)(int font); | ||
173 | void (*lcd_clearrect)(int x, int y, int nx, int ny); | ||
174 | void (*lcd_fillrect)(int x, int y, int nx, int ny); | ||
175 | void (*lcd_drawrect)(int x, int y, int nx, int ny); | ||
176 | void (*lcd_invertrect)(int x, int y, int nx, int ny); | ||
177 | int (*lcd_getstringsize)(const unsigned char *str, int *w, int *h); | ||
178 | void (*lcd_update)(void); | 181 | void (*lcd_update)(void); |
179 | void (*lcd_update_rect)(int x, int y, int width, int height); | 182 | void (*lcd_update_rect)(int x, int y, int width, int height); |
180 | void (*scrollbar)(int x, int y, int width, int height, int items, | 183 | void (*scrollbar)(int x, int y, int width, int height, int items, |
181 | int min_shown, int max_shown, int orientation); | 184 | int min_shown, int max_shown, int orientation); |
182 | void (*checkbox)(int x, int y, int width, int height, bool checked); | 185 | void (*checkbox)(int x, int y, int width, int height, bool checked); |
183 | unsigned char* lcd_framebuffer; | 186 | struct font* (*font_get)(int font); |
184 | void (*lcd_blit) (const unsigned char* p_data, int x, int y, int width, | ||
185 | int height, int stride); | ||
186 | #ifndef SIMULATOR | ||
187 | void (*lcd_roll)(int pixels); | ||
188 | #endif | ||
189 | #endif | 187 | #endif |
190 | void (*backlight_on)(void); | 188 | void (*backlight_on)(void); |
191 | void (*backlight_off)(void); | 189 | void (*backlight_off)(void); |