diff options
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index d39e92de9c..a6807284f8 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -106,7 +106,7 @@ | |||
106 | #define PLUGIN_API_VERSION 18 | 106 | #define PLUGIN_API_VERSION 18 |
107 | 107 | ||
108 | /* update this to latest version if a change to the api struct breaks | 108 | /* update this to latest version if a change to the api struct breaks |
109 | backwards compatibility (and please take the opportunity to sort in any | 109 | backwards compatibility (and please take the opportunity to sort in any |
110 | new function which are "waiting" at the end of the function table) */ | 110 | new function which are "waiting" at the end of the function table) */ |
111 | #define PLUGIN_MIN_API_VERSION 14 | 111 | #define PLUGIN_MIN_API_VERSION 14 |
112 | 112 | ||
@@ -233,7 +233,7 @@ struct plugin_api { | |||
233 | long (*button_get_w_tmo)(int ticks); | 233 | long (*button_get_w_tmo)(int ticks); |
234 | int (*button_status)(void); | 234 | int (*button_status)(void); |
235 | void (*button_clear_queue)(void); | 235 | void (*button_clear_queue)(void); |
236 | #ifdef HAS_BUTTON_HOLD | 236 | #ifdef HAS_BUTTON_HOLD |
237 | bool (*button_hold)(void); | 237 | bool (*button_hold)(void); |
238 | #endif | 238 | #endif |
239 | 239 | ||
@@ -255,7 +255,7 @@ struct plugin_api { | |||
255 | void (*ata_sleep)(void); | 255 | void (*ata_sleep)(void); |
256 | bool (*ata_disk_is_active)(void); | 256 | bool (*ata_disk_is_active)(void); |
257 | #endif | 257 | #endif |
258 | 258 | ||
259 | /* dir */ | 259 | /* dir */ |
260 | DIR* (*PREFIX(opendir))(const char* name); | 260 | DIR* (*PREFIX(opendir))(const char* name); |
261 | int (*PREFIX(closedir))(DIR* dir); | 261 | int (*PREFIX(closedir))(DIR* dir); |
@@ -376,7 +376,7 @@ struct plugin_api { | |||
376 | #endif | 376 | #endif |
377 | #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) || \ | 377 | #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) || \ |
378 | (CONFIG_CODEC == SWCODEC) | 378 | (CONFIG_CODEC == SWCODEC) |
379 | void (*sound_set_pitch)(int pitch); | 379 | void (*sound_set_pitch)(int pitch); |
380 | #endif | 380 | #endif |
381 | 381 | ||
382 | /* MAS communication */ | 382 | /* MAS communication */ |
@@ -408,8 +408,8 @@ struct plugin_api { | |||
408 | void (*menu_insert)(int menu, int position, char *desc, bool (*function) (void)); | 408 | void (*menu_insert)(int menu, int position, char *desc, bool (*function) (void)); |
409 | void (*menu_set_cursor)(int menu, int position); | 409 | void (*menu_set_cursor)(int menu, int position); |
410 | 410 | ||
411 | bool (*set_option)(const char* string, void* variable, | 411 | bool (*set_option)(const char* string, void* variable, |
412 | enum optiontype type, const struct opt_items* options, | 412 | enum optiontype type, const struct opt_items* options, |
413 | int numoptions, void (*function)(int)); | 413 | int numoptions, void (*function)(int)); |
414 | 414 | ||
415 | 415 | ||
@@ -473,7 +473,7 @@ struct plugin_api { | |||
473 | struct tree_context* (*tree_get_context)(void); | 473 | struct tree_context* (*tree_get_context)(void); |
474 | 474 | ||
475 | /* new stuff at the end, sort into place next time | 475 | /* new stuff at the end, sort into place next time |
476 | the API gets incompatible */ | 476 | the API gets incompatible */ |
477 | bool (*set_sound)(const unsigned char * string, | 477 | bool (*set_sound)(const unsigned char * string, |
478 | int* variable, int setting); | 478 | int* variable, int setting); |
479 | #if ((CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)) && !defined(SIMULATOR) | 479 | #if ((CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)) && !defined(SIMULATOR) |
@@ -510,6 +510,10 @@ struct plugin_api { | |||
510 | void (*gui_synclist_scroll_left)(struct gui_synclist * lists); | 510 | void (*gui_synclist_scroll_left)(struct gui_synclist * lists); |
511 | #endif | 511 | #endif |
512 | unsigned (*gui_synclist_do_button)(struct gui_synclist * lists, unsigned button); | 512 | unsigned (*gui_synclist_do_button)(struct gui_synclist * lists, unsigned button); |
513 | |||
514 | #ifdef HAVE_LCD_BITMAP | ||
515 | void (*lcd_setmargins)(int x, int y); | ||
516 | #endif | ||
513 | }; | 517 | }; |
514 | 518 | ||
515 | /* plugin header */ | 519 | /* plugin header */ |