diff options
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 2bcdffb344..8682deb60e 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -45,10 +45,11 @@ | |||
45 | #include "settings.h" | 45 | #include "settings.h" |
46 | 46 | ||
47 | /* increase this every time the api struct changes */ | 47 | /* increase this every time the api struct changes */ |
48 | #define PLUGIN_API_VERSION 10 | 48 | #define PLUGIN_API_VERSION 11 |
49 | 49 | ||
50 | /* update this to latest version if a change to the api struct breaks | 50 | /* update this to latest version if a change to the api struct breaks |
51 | backwards compatibility */ | 51 | backwards compatibility (and please take the opportunity to sort in any |
52 | new function which are "waiting" at the end of the function table) */ | ||
52 | #define PLUGIN_MIN_API_VERSION 9 | 53 | #define PLUGIN_MIN_API_VERSION 9 |
53 | 54 | ||
54 | /* plugin return codes */ | 55 | /* plugin return codes */ |
@@ -187,7 +188,6 @@ struct plugin_api { | |||
187 | /* new stuff, sort in next time the API gets broken! */ | 188 | /* new stuff, sort in next time the API gets broken! */ |
188 | #ifndef HAVE_LCD_CHARCELLS | 189 | #ifndef HAVE_LCD_CHARCELLS |
189 | unsigned char* lcd_framebuffer; | 190 | unsigned char* lcd_framebuffer; |
190 | /* performance function */ | ||
191 | void (*lcd_blit) (unsigned char* p_data, int x, int y, int width, int height, int stride); | 191 | void (*lcd_blit) (unsigned char* p_data, int x, int y, int width, int height, int stride); |
192 | #endif | 192 | #endif |
193 | void (*yield)(void); | 193 | void (*yield)(void); |
@@ -204,6 +204,9 @@ struct plugin_api { | |||
204 | #endif | 204 | #endif |
205 | struct user_settings* global_settings; | 205 | struct user_settings* global_settings; |
206 | void (*backlight_set_timeout)(int index); | 206 | void (*backlight_set_timeout)(int index); |
207 | #ifndef SIMULATOR | ||
208 | void (*ata_sleep)(void); | ||
209 | #endif | ||
207 | }; | 210 | }; |
208 | 211 | ||
209 | /* defined by the plugin loader (plugin.c) */ | 212 | /* defined by the plugin loader (plugin.c) */ |