diff options
author | Yoshihisa Uchida <uchida@rockbox.org> | 2010-07-07 11:35:30 +0000 |
---|---|---|
committer | Yoshihisa Uchida <uchida@rockbox.org> | 2010-07-07 11:35:30 +0000 |
commit | e5a257607dd93afe239a03dff0d093dfb3af64be (patch) | |
tree | 77565f61e5de1cadc8a9531b2931656bc336c3ad /apps/plugin.h | |
parent | 6d609e009f4836418bbe5b404be8ae03d29ef8cb (diff) | |
download | rockbox-e5a257607dd93afe239a03dff0d093dfb3af64be.tar.gz rockbox-e5a257607dd93afe239a03dff0d093dfb3af64be.zip |
plugin api: add the following functions.
- get the viewport of the current skin.
- update the current skin statusbar.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27333 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index edad8c4e9b..21ec7e42df 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -84,6 +84,7 @@ void* plugin_get_buffer(size_t *buffer_size); | |||
84 | #include "scrollbar.h" | 84 | #include "scrollbar.h" |
85 | #include "jpeg_load.h" | 85 | #include "jpeg_load.h" |
86 | #include "../recorder/bmp.h" | 86 | #include "../recorder/bmp.h" |
87 | #include "statusbar-skinned.h" | ||
87 | #endif | 88 | #endif |
88 | #include "statusbar.h" | 89 | #include "statusbar.h" |
89 | #include "menu.h" | 90 | #include "menu.h" |
@@ -144,12 +145,12 @@ void* plugin_get_buffer(size_t *buffer_size); | |||
144 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 145 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
145 | 146 | ||
146 | /* increase this every time the api struct changes */ | 147 | /* increase this every time the api struct changes */ |
147 | #define PLUGIN_API_VERSION 188 | 148 | #define PLUGIN_API_VERSION 189 |
148 | 149 | ||
149 | /* update this to latest version if a change to the api struct breaks | 150 | /* update this to latest version if a change to the api struct breaks |
150 | backwards compatibility (and please take the opportunity to sort in any | 151 | backwards compatibility (and please take the opportunity to sort in any |
151 | new function which are "waiting" at the end of the function table) */ | 152 | new function which are "waiting" at the end of the function table) */ |
152 | #define PLUGIN_MIN_API_VERSION 188 | 153 | #define PLUGIN_MIN_API_VERSION 189 |
153 | 154 | ||
154 | /* plugin return codes */ | 155 | /* plugin return codes */ |
155 | enum plugin_status { | 156 | enum plugin_status { |
@@ -694,6 +695,10 @@ struct plugin_api { | |||
694 | /* scroll bar */ | 695 | /* scroll bar */ |
695 | struct gui_syncstatusbar *statusbars; | 696 | struct gui_syncstatusbar *statusbars; |
696 | void (*gui_syncstatusbar_draw)(struct gui_syncstatusbar * bars, bool force_redraw); | 697 | void (*gui_syncstatusbar_draw)(struct gui_syncstatusbar * bars, bool force_redraw); |
698 | #ifdef HAVE_LCD_BITMAP | ||
699 | struct viewport *(*sb_skin_get_info_vp)(enum screen_type screen); | ||
700 | void (*sb_skin_update)(enum screen_type screen, bool force); | ||
701 | #endif | ||
697 | 702 | ||
698 | /* options */ | 703 | /* options */ |
699 | const struct settings_list* (*get_settings_list)(int*count); | 704 | const struct settings_list* (*get_settings_list)(int*count); |