summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugin.c7
-rw-r--r--apps/plugin.h10
2 files changed, 16 insertions, 1 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index dff4d6b6ee..a9a2dfb58a 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -233,6 +233,13 @@ static struct plugin_api rockbox_api = {
233#endif 233#endif
234 battery_level, 234 battery_level,
235 set_time, 235 set_time,
236
237 backlight_on,
238 backlight_off,
239
240#ifdef HAVE_LCD_CHARCELLS
241 lcd_icon,
242#endif
236}; 243};
237 244
238int plugin_load(char* plugin, void* parameter) 245int plugin_load(char* plugin, void* parameter)
diff --git a/apps/plugin.h b/apps/plugin.h
index 33112bb5d2..a11922c889 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -56,7 +56,7 @@
56#endif 56#endif
57 57
58/* increase this every time the api struct changes */ 58/* increase this every time the api struct changes */
59#define PLUGIN_API_VERSION 16 59#define PLUGIN_API_VERSION 17
60 60
61/* update this to latest version if a change to the api struct breaks 61/* update this to latest version if a change to the api struct breaks
62 backwards compatibility (and please take the opportunity to sort in any 62 backwards compatibility (and please take the opportunity to sort in any
@@ -245,6 +245,7 @@ struct plugin_api {
245#ifdef HAVE_LCD_BITMAP 245#ifdef HAVE_LCD_BITMAP
246 struct font* (*font_get)(int font); 246 struct font* (*font_get)(int font);
247#endif 247#endif
248
248#if defined(DEBUG) || defined(SIMULATOR) 249#if defined(DEBUG) || defined(SIMULATOR)
249 void (*debugf)(char *fmt, ...); 250 void (*debugf)(char *fmt, ...);
250#endif 251#endif
@@ -267,6 +268,13 @@ struct plugin_api {
267#endif 268#endif
268 int (*battery_level)(void); 269 int (*battery_level)(void);
269 int (*set_time)(struct tm *tm); 270 int (*set_time)(struct tm *tm);
271
272 void (*backlight_on)(void);
273 void (*backlight_off)(void);
274
275#ifdef HAVE_LCD_CHARCELLS
276 void (*lcd_icon)(int icon, bool enable);
277#endif
270}; 278};
271 279
272/* defined by the plugin loader (plugin.c) */ 280/* defined by the plugin loader (plugin.c) */