diff options
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index a302cc4241..8e5f474232 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -135,7 +135,7 @@ void* plugin_get_buffer(size_t *buffer_size); | |||
135 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 135 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
136 | 136 | ||
137 | /* increase this every time the api struct changes */ | 137 | /* increase this every time the api struct changes */ |
138 | #define PLUGIN_API_VERSION 176 | 138 | #define PLUGIN_API_VERSION 177 |
139 | 139 | ||
140 | /* update this to latest version if a change to the api struct breaks | 140 | /* update this to latest version if a change to the api struct breaks |
141 | backwards compatibility (and please take the opportunity to sort in any | 141 | backwards compatibility (and please take the opportunity to sort in any |
@@ -329,24 +329,27 @@ struct plugin_api { | |||
329 | unsigned (*lcd_remote_get_foreground)(void); | 329 | unsigned (*lcd_remote_get_foreground)(void); |
330 | void (*lcd_remote_set_background)(unsigned background); | 330 | void (*lcd_remote_set_background)(unsigned background); |
331 | unsigned (*lcd_remote_get_background)(void); | 331 | unsigned (*lcd_remote_get_background)(void); |
332 | void (*lcd_remote_bitmap_part)(const fb_remote_data *src, int src_x, int src_y, | 332 | void (*lcd_remote_bitmap_part)(const fb_remote_data *src, |
333 | int stride, int x, int y, int width, int height); | 333 | int src_x, int src_y, int stride, |
334 | void (*lcd_remote_bitmap)(const fb_remote_data *src, int x, int y, int width, | 334 | int x, int y, int width, int height); |
335 | int height); | 335 | void (*lcd_remote_bitmap)(const fb_remote_data *src, int x, int y, |
336 | int width, int height); | ||
336 | #endif | 337 | #endif |
337 | void (*viewport_set_defaults)(struct viewport *vp, enum screen_type screen); | 338 | void (*viewport_set_defaults)(struct viewport *vp, |
339 | const enum screen_type screen); | ||
338 | /* list */ | 340 | /* list */ |
339 | void (*gui_synclist_init)(struct gui_synclist * lists, | 341 | void (*gui_synclist_init)(struct gui_synclist * lists, |
340 | list_get_name callback_get_item_name, void * data, | 342 | list_get_name callback_get_item_name, void * data, |
341 | bool scroll_all,int selected_size, | 343 | bool scroll_all,int selected_size, |
342 | struct viewport parent[NB_SCREENS]); | 344 | struct viewport parent[NB_SCREENS]); |
343 | void (*gui_synclist_set_nb_items)(struct gui_synclist * lists, int nb_items); | 345 | void (*gui_synclist_set_nb_items)(struct gui_synclist * lists, int nb_items); |
344 | void (*gui_synclist_set_icon_callback)(struct gui_synclist * lists, list_get_icon icon_callback); | 346 | void (*gui_synclist_set_icon_callback)(struct gui_synclist * lists, |
347 | list_get_icon icon_callback); | ||
345 | int (*gui_synclist_get_nb_items)(struct gui_synclist * lists); | 348 | int (*gui_synclist_get_nb_items)(struct gui_synclist * lists); |
346 | int (*gui_synclist_get_sel_pos)(struct gui_synclist * lists); | 349 | int (*gui_synclist_get_sel_pos)(struct gui_synclist * lists); |
347 | void (*gui_synclist_draw)(struct gui_synclist * lists); | 350 | void (*gui_synclist_draw)(struct gui_synclist * lists); |
348 | void (*gui_synclist_select_item)(struct gui_synclist * lists, | 351 | void (*gui_synclist_select_item)(struct gui_synclist * lists, |
349 | int item_number); | 352 | int item_number); |
350 | void (*gui_synclist_add_item)(struct gui_synclist * lists); | 353 | void (*gui_synclist_add_item)(struct gui_synclist * lists); |
351 | void (*gui_synclist_del_item)(struct gui_synclist * lists); | 354 | void (*gui_synclist_del_item)(struct gui_synclist * lists); |
352 | void (*gui_synclist_limit_scroll)(struct gui_synclist * lists, bool scroll); | 355 | void (*gui_synclist_limit_scroll)(struct gui_synclist * lists, bool scroll); |
@@ -358,7 +361,7 @@ struct plugin_api { | |||
358 | const struct text_message * yes_message, | 361 | const struct text_message * yes_message, |
359 | const struct text_message * no_message); | 362 | const struct text_message * no_message); |
360 | void (*simplelist_info_init)(struct simplelist_info *info, char* title, | 363 | void (*simplelist_info_init)(struct simplelist_info *info, char* title, |
361 | int count, void* data); | 364 | int count, void* data); |
362 | bool (*simplelist_show_list)(struct simplelist_info *info); | 365 | bool (*simplelist_show_list)(struct simplelist_info *info); |
363 | 366 | ||
364 | /* button */ | 367 | /* button */ |
@@ -431,7 +434,8 @@ struct plugin_api { | |||
431 | void (*yield)(void); | 434 | void (*yield)(void); |
432 | volatile long* current_tick; | 435 | volatile long* current_tick; |
433 | long (*default_event_handler)(long event); | 436 | long (*default_event_handler)(long event); |
434 | long (*default_event_handler_ex)(long event, void (*callback)(void *), void *parameter); | 437 | long (*default_event_handler_ex)(long event, |
438 | void (*callback)(void *), void *parameter); | ||
435 | unsigned int (*create_thread)(void (*function)(void), void* stack, | 439 | unsigned int (*create_thread)(void (*function)(void), void* stack, |
436 | size_t stack_size, unsigned flags, | 440 | size_t stack_size, unsigned flags, |
437 | const char *name | 441 | const char *name |
@@ -554,7 +558,8 @@ struct plugin_api { | |||
554 | const char * (*sound_unit)(int setting); | 558 | const char * (*sound_unit)(int setting); |
555 | int (*sound_val2phys)(int setting, int value); | 559 | int (*sound_val2phys)(int setting, int value); |
556 | #ifndef SIMULATOR | 560 | #ifndef SIMULATOR |
557 | void (*mp3_play_data)(const unsigned char* start, int size, void (*get_more)(unsigned char** start, size_t* size)); | 561 | void (*mp3_play_data)(const unsigned char* start, int size, |
562 | void (*get_more)(unsigned char** start, size_t* size)); | ||
558 | void (*mp3_play_pause)(bool play); | 563 | void (*mp3_play_pause)(bool play); |
559 | void (*mp3_play_stop)(void); | 564 | void (*mp3_play_stop)(void); |
560 | bool (*mp3_is_playing)(void); | 565 | bool (*mp3_is_playing)(void); |
@@ -849,6 +854,7 @@ struct plugin_api { | |||
849 | int amplitude); | 854 | int amplitude); |
850 | #endif | 855 | #endif |
851 | unsigned (*crc_32)(const void *src, unsigned len, unsigned crc32); | 856 | unsigned (*crc_32)(const void *src, unsigned len, unsigned crc32); |
857 | int (*open_utf8)(const char* pathname, int flags); | ||
852 | }; | 858 | }; |
853 | 859 | ||
854 | /* plugin header */ | 860 | /* plugin header */ |