summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 6ff7e7e568..7ea1943395 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -133,12 +133,12 @@ void* plugin_get_buffer(size_t *buffer_size);
133#define PLUGIN_MAGIC 0x526F634B /* RocK */ 133#define PLUGIN_MAGIC 0x526F634B /* RocK */
134 134
135/* increase this every time the api struct changes */ 135/* increase this every time the api struct changes */
136#define PLUGIN_API_VERSION 172 136#define PLUGIN_API_VERSION 173
137 137
138/* update this to latest version if a change to the api struct breaks 138/* update this to latest version if a change to the api struct breaks
139 backwards compatibility (and please take the opportunity to sort in any 139 backwards compatibility (and please take the opportunity to sort in any
140 new function which are "waiting" at the end of the function table) */ 140 new function which are "waiting" at the end of the function table) */
141#define PLUGIN_MIN_API_VERSION 172 141#define PLUGIN_MIN_API_VERSION 173
142 142
143/* plugin return codes */ 143/* plugin return codes */
144enum plugin_status { 144enum plugin_status {
@@ -244,7 +244,6 @@ struct plugin_api {
244#endif 244#endif
245 245
246#if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) 246#if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP)
247 void (*lcd_activation_set_hook)(void (*enable_hook)(void));
248 struct event_queue *button_queue; 247 struct event_queue *button_queue;
249#endif 248#endif
250 unsigned short *(*bidi_l2v)( const unsigned char *str, int orientation ); 249 unsigned short *(*bidi_l2v)( const unsigned char *str, int orientation );
@@ -367,6 +366,7 @@ struct plugin_api {
367 int (*button_status)(void); 366 int (*button_status)(void);
368#ifdef HAVE_BUTTON_DATA 367#ifdef HAVE_BUTTON_DATA
369 intptr_t (*button_get_data)(void); 368 intptr_t (*button_get_data)(void);
369 int (*button_status_wdata)(int *pdata);
370#endif 370#endif
371 void (*button_clear_queue)(void); 371 void (*button_clear_queue)(void);
372 int (*button_queue_count)(void); 372 int (*button_queue_count)(void);
@@ -500,6 +500,10 @@ struct plugin_api {
500 void (*profile_func_enter)(void *this_fn, void *call_site); 500 void (*profile_func_enter)(void *this_fn, void *call_site);
501 void (*profile_func_exit)(void *this_fn, void *call_site); 501 void (*profile_func_exit)(void *this_fn, void *call_site);
502#endif 502#endif
503 /* event api */
504 bool (*add_event)(unsigned short id, bool oneshot, void (*handler)(void *data));
505 void (*remove_event)(unsigned short id, void (*handler)(void *data));
506 void (*send_event)(unsigned short id, void *data);
503 507
504#ifdef SIMULATOR 508#ifdef SIMULATOR
505 /* special simulator hooks */ 509 /* special simulator hooks */
@@ -837,10 +841,6 @@ struct plugin_api {
837 const char *appsversion; 841 const char *appsversion;
838 /* new stuff at the end, sort into place next time 842 /* new stuff at the end, sort into place next time
839 the API gets incompatible */ 843 the API gets incompatible */
840
841#ifdef HAVE_BUTTON_DATA
842 int (*button_status_wdata)(int *pdata);
843#endif
844}; 844};
845 845
846/* plugin header */ 846/* plugin header */