summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index c737d7adeb..430c15a2a6 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -161,12 +161,12 @@ void* plugin_get_buffer(size_t *buffer_size);
161#define PLUGIN_MAGIC 0x526F634B /* RocK */ 161#define PLUGIN_MAGIC 0x526F634B /* RocK */
162 162
163/* increase this every time the api struct changes */ 163/* increase this every time the api struct changes */
164#define PLUGIN_API_VERSION 237 164#define PLUGIN_API_VERSION 238
165 165
166/* update this to latest version if a change to the api struct breaks 166/* update this to latest version if a change to the api struct breaks
167 backwards compatibility (and please take the opportunity to sort in any 167 backwards compatibility (and please take the opportunity to sort in any
168 new function which are "waiting" at the end of the function table) */ 168 new function which are "waiting" at the end of the function table) */
169#define PLUGIN_MIN_API_VERSION 237 169#define PLUGIN_MIN_API_VERSION 238
170 170
171/* plugin return codes */ 171/* plugin return codes */
172/* internal returns start at 0x100 to make exit(1..255) work */ 172/* internal returns start at 0x100 to make exit(1..255) work */
@@ -435,6 +435,10 @@ struct plugin_api {
435#ifdef HAS_BUTTON_HOLD 435#ifdef HAS_BUTTON_HOLD
436 bool (*button_hold)(void); 436 bool (*button_hold)(void);
437#endif 437#endif
438#ifdef HAVE_SW_POWEROFF
439 void (*button_set_sw_poweroff_state)(bool enable);
440 bool (*button_get_sw_poweroff_state)(void);
441#endif
438#ifdef HAVE_TOUCHSCREEN 442#ifdef HAVE_TOUCHSCREEN
439 void (*touchscreen_set_mode)(enum touchscreen_mode); 443 void (*touchscreen_set_mode)(enum touchscreen_mode);
440 enum touchscreen_mode (*touchscreen_get_mode)(void); 444 enum touchscreen_mode (*touchscreen_get_mode)(void);