summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 9e0386f..9ca1473 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -120,7 +120,7 @@
#define PLUGIN_MAGIC 0x526F634B /* RocK */
/* increase this every time the api struct changes */
-#define PLUGIN_API_VERSION 108
+#define PLUGIN_API_VERSION 109
/* update this to latest version if a change to the api struct breaks
backwards compatibility (and please take the opportunity to sort in any
@@ -232,6 +232,7 @@ struct plugin_api {
void (*backlight_on)(void);
void (*backlight_off)(void);
void (*backlight_set_timeout)(int index);
+
#if CONFIG_CHARGING
void (*backlight_set_timeout_plugged)(int index);
#endif
@@ -723,7 +724,11 @@ struct plugin_api {
/* new stuff at the end, sort into place next time
the API gets incompatible */
-
+
+#ifdef HAVE_BACKLIGHT_BRIGHTNESS
+ void (*backlight_set_brightness)(int val);
+#endif /* HAVE_BACKLIGHT_BRIGHTNESS */
+
};
/* plugin header */