summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index edd54989da..4be76adfd1 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -124,12 +124,12 @@ void* plugin_get_buffer(size_t *buffer_size);
124#define PLUGIN_MAGIC 0x526F634B /* RocK */ 124#define PLUGIN_MAGIC 0x526F634B /* RocK */
125 125
126/* increase this every time the api struct changes */ 126/* increase this every time the api struct changes */
127#define PLUGIN_API_VERSION 116 127#define PLUGIN_API_VERSION 117
128 128
129/* update this to latest version if a change to the api struct breaks 129/* update this to latest version if a change to the api struct breaks
130 backwards compatibility (and please take the opportunity to sort in any 130 backwards compatibility (and please take the opportunity to sort in any
131 new function which are "waiting" at the end of the function table) */ 131 new function which are "waiting" at the end of the function table) */
132#define PLUGIN_MIN_API_VERSION 114 132#define PLUGIN_MIN_API_VERSION 117
133 133
134/* plugin return codes */ 134/* plugin return codes */
135enum plugin_status { 135enum plugin_status {
@@ -150,7 +150,6 @@ struct plugin_api {
150 void (*lcd_set_contrast)(int x); 150 void (*lcd_set_contrast)(int x);
151 void (*lcd_update)(void); 151 void (*lcd_update)(void);
152 void (*lcd_clear_display)(void); 152 void (*lcd_clear_display)(void);
153 void (*lcd_setmargins)(int x, int y);
154 int (*lcd_getstringsize)(const unsigned char *str, int *w, int *h); 153 int (*lcd_getstringsize)(const unsigned char *str, int *w, int *h);
155 void (*lcd_putsxy)(int x, int y, const unsigned char *string); 154 void (*lcd_putsxy)(int x, int y, const unsigned char *string);
156 void (*lcd_puts)(int x, int y, const unsigned char *string); 155 void (*lcd_puts)(int x, int y, const unsigned char *string);
@@ -220,6 +219,10 @@ struct plugin_api {
220 void (*lcd_set_invert_display)(bool yesno); 219 void (*lcd_set_invert_display)(bool yesno);
221#endif /* HAVE_LCD_INVERT */ 220#endif /* HAVE_LCD_INVERT */
222 221
222#ifdef HAVE_LCD_ENABLE
223 void (*lcd_set_enable_hook)(void (*enable_hook)(void));
224 struct event_queue *button_queue;
225#endif
223 unsigned short *(*bidi_l2v)( const unsigned char *str, int orientation ); 226 unsigned short *(*bidi_l2v)( const unsigned char *str, int orientation );
224 const unsigned char *(*font_get_bits)( struct font *pf, unsigned short char_code ); 227 const unsigned char *(*font_get_bits)( struct font *pf, unsigned short char_code );
225 struct font* (*font_load)(const char *path); 228 struct font* (*font_load)(const char *path);
@@ -253,7 +256,6 @@ struct plugin_api {
253 /* remote lcd */ 256 /* remote lcd */
254 void (*lcd_remote_set_contrast)(int x); 257 void (*lcd_remote_set_contrast)(int x);
255 void (*lcd_remote_clear_display)(void); 258 void (*lcd_remote_clear_display)(void);
256 void (*lcd_remote_setmargins)(int x, int y);
257 void (*lcd_remote_puts)(int x, int y, const unsigned char *string); 259 void (*lcd_remote_puts)(int x, int y, const unsigned char *string);
258 void (*lcd_remote_puts_scroll)(int x, int y, const unsigned char* string); 260 void (*lcd_remote_puts_scroll)(int x, int y, const unsigned char* string);
259 void (*lcd_remote_stop_scroll)(void); 261 void (*lcd_remote_stop_scroll)(void);
@@ -317,6 +319,9 @@ struct plugin_api {
317 bool (*gui_synclist_do_button)(struct gui_synclist * lists, 319 bool (*gui_synclist_do_button)(struct gui_synclist * lists,
318 unsigned *action, enum list_wrap wrap); 320 unsigned *action, enum list_wrap wrap);
319 void (*gui_synclist_set_title)(struct gui_synclist *lists, char* title, int icon); 321 void (*gui_synclist_set_title)(struct gui_synclist *lists, char* title, int icon);
322 void (*simplelist_info_init)(struct simplelist_info *info, char* title,
323 int count, void* data);
324 bool (*simplelist_show_list)(struct simplelist_info *info);
320 325
321 /* button */ 326 /* button */
322 long (*button_get)(bool block); 327 long (*button_get)(bool block);
@@ -748,14 +753,7 @@ struct plugin_api {
748 753
749 /* new stuff at the end, sort into place next time 754 /* new stuff at the end, sort into place next time
750 the API gets incompatible */ 755 the API gets incompatible */
751 void (*simplelist_info_init)(struct simplelist_info *info, char* title,
752 int count, void* data);
753 bool (*simplelist_show_list)(struct simplelist_info *info);
754 756
755#ifdef HAVE_LCD_ENABLE
756 void (*lcd_set_enable_hook)(void (*enable_hook)(void));
757 struct event_queue *button_queue;
758#endif
759}; 757};
760 758
761/* plugin header */ 759/* plugin header */