summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 5b3193c42b..d9b32055d6 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -60,12 +60,12 @@
60#endif 60#endif
61 61
62/* increase this every time the api struct changes */ 62/* increase this every time the api struct changes */
63#define PLUGIN_API_VERSION 18 63#define PLUGIN_API_VERSION 19
64 64
65/* update this to latest version if a change to the api struct breaks 65/* update this to latest version if a change to the api struct breaks
66 backwards compatibility (and please take the opportunity to sort in any 66 backwards compatibility (and please take the opportunity to sort in any
67 new function which are "waiting" at the end of the function table) */ 67 new function which are "waiting" at the end of the function table) */
68#define PLUGIN_MIN_API_VERSION 18 68#define PLUGIN_MIN_API_VERSION 19
69 69
70/* plugin return codes */ 70/* plugin return codes */
71enum plugin_status { 71enum plugin_status {
@@ -176,6 +176,9 @@ struct plugin_api {
176 size_t (*strlen)(const char *str); 176 size_t (*strlen)(const char *str);
177 void* (*memset)(void *dst, int c, size_t length); 177 void* (*memset)(void *dst, int c, size_t length);
178 void* (*memcpy)(void *out, const void *in, size_t n); 178 void* (*memcpy)(void *out, const void *in, size_t n);
179#ifndef SIMULATOR
180 char *_ctype_;
181#endif
179 182
180 /* sound */ 183 /* sound */
181#ifndef SIMULATOR 184#ifndef SIMULATOR
@@ -240,6 +243,7 @@ struct plugin_api {
240 struct mp3entry* (*mpeg_next_track)(void); 243 struct mp3entry* (*mpeg_next_track)(void);
241 int (*playlist_amount)(void); 244 int (*playlist_amount)(void);
242 int (*mpeg_status)(void); 245 int (*mpeg_status)(void);
246 bool (*mpeg_has_changed_track)(void);
243 247
244#ifdef HAVE_LCD_BITMAP 248#ifdef HAVE_LCD_BITMAP
245 struct font* (*font_get)(int font); 249 struct font* (*font_get)(int font);
@@ -267,6 +271,7 @@ struct plugin_api {
267#endif 271#endif
268 int (*battery_level)(void); 272 int (*battery_level)(void);
269 int (*set_time)(struct tm *tm); 273 int (*set_time)(struct tm *tm);
274 void (*reset_poweroff_timer)(void);
270 275
271 void (*backlight_on)(void); 276 void (*backlight_on)(void);
272 void (*backlight_off)(void); 277 void (*backlight_off)(void);
@@ -274,9 +279,6 @@ struct plugin_api {
274#ifdef HAVE_LCD_CHARCELLS 279#ifdef HAVE_LCD_CHARCELLS
275 void (*lcd_icon)(int icon, bool enable); 280 void (*lcd_icon)(int icon, bool enable);
276#endif 281#endif
277
278 void (*reset_poweroff_timer)(void);
279 bool (*mpeg_has_changed_track)(void);
280}; 282};
281 283
282/* defined by the plugin loader (plugin.c) */ 284/* defined by the plugin loader (plugin.c) */