diff options
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 1283751fe9..66ed5fdbb2 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -80,6 +80,7 @@ | |||
80 | #include "color_picker.h" | 80 | #include "color_picker.h" |
81 | #include "buffering.h" | 81 | #include "buffering.h" |
82 | #include "tagcache.h" | 82 | #include "tagcache.h" |
83 | #include "viewport.h" | ||
83 | 84 | ||
84 | #ifdef HAVE_ALBUMART | 85 | #ifdef HAVE_ALBUMART |
85 | #include "albumart.h" | 86 | #include "albumart.h" |
@@ -119,12 +120,12 @@ | |||
119 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 120 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
120 | 121 | ||
121 | /* increase this every time the api struct changes */ | 122 | /* increase this every time the api struct changes */ |
122 | #define PLUGIN_API_VERSION 102 | 123 | #define PLUGIN_API_VERSION 103 |
123 | 124 | ||
124 | /* update this to latest version if a change to the api struct breaks | 125 | /* update this to latest version if a change to the api struct breaks |
125 | backwards compatibility (and please take the opportunity to sort in any | 126 | backwards compatibility (and please take the opportunity to sort in any |
126 | new function which are "waiting" at the end of the function table) */ | 127 | new function which are "waiting" at the end of the function table) */ |
127 | #define PLUGIN_MIN_API_VERSION 102 | 128 | #define PLUGIN_MIN_API_VERSION 103 |
128 | 129 | ||
129 | /* plugin return codes */ | 130 | /* plugin return codes */ |
130 | enum plugin_status { | 131 | enum plugin_status { |
@@ -285,10 +286,12 @@ struct plugin_api { | |||
285 | void (*lcd_remote_bitmap)(const fb_remote_data *src, int x, int y, int width, | 286 | void (*lcd_remote_bitmap)(const fb_remote_data *src, int x, int y, int width, |
286 | int height); | 287 | int height); |
287 | #endif | 288 | #endif |
289 | void (*viewport_set_defaults)(struct viewport *vp, enum screen_type screen); | ||
288 | /* list */ | 290 | /* list */ |
289 | void (*gui_synclist_init)(struct gui_synclist * lists, | 291 | void (*gui_synclist_init)(struct gui_synclist * lists, |
290 | list_get_name callback_get_item_name,void * data, | 292 | list_get_name callback_get_item_name,void * data, |
291 | bool scroll_all,int selected_size); | 293 | bool scroll_all,int selected_size, |
294 | struct viewport parent[NB_SCREENS]); | ||
292 | void (*gui_synclist_set_nb_items)(struct gui_synclist * lists, int nb_items); | 295 | void (*gui_synclist_set_nb_items)(struct gui_synclist * lists, int nb_items); |
293 | void (*gui_synclist_set_icon_callback)(struct gui_synclist * lists, list_get_icon icon_callback); | 296 | void (*gui_synclist_set_icon_callback)(struct gui_synclist * lists, list_get_icon icon_callback); |
294 | int (*gui_synclist_get_nb_items)(struct gui_synclist * lists); | 297 | int (*gui_synclist_get_nb_items)(struct gui_synclist * lists); |
@@ -555,7 +558,8 @@ struct plugin_api { | |||
555 | #endif | 558 | #endif |
556 | 559 | ||
557 | /* menu */ | 560 | /* menu */ |
558 | int (*do_menu)(const struct menu_item_ex *menu, int *start_selected); | 561 | int (*do_menu)(const struct menu_item_ex *menu, int *start_selected, |
562 | struct viewport parent[NB_SCREENS], bool hide_bars); | ||
559 | 563 | ||
560 | /* scroll bar */ | 564 | /* scroll bar */ |
561 | struct gui_syncstatusbar *statusbars; | 565 | struct gui_syncstatusbar *statusbars; |