summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoshihisa Uchida <uchida@rockbox.org>2010-07-07 11:35:30 +0000
committerYoshihisa Uchida <uchida@rockbox.org>2010-07-07 11:35:30 +0000
commite5a257607dd93afe239a03dff0d093dfb3af64be (patch)
tree77565f61e5de1cadc8a9531b2931656bc336c3ad
parent6d609e009f4836418bbe5b404be8ae03d29ef8cb (diff)
downloadrockbox-e5a257607dd93afe239a03dff0d093dfb3af64be.zip
rockbox-e5a257607dd93afe239a03dff0d093dfb3af64be.tar.gz
rockbox-e5a257607dd93afe239a03dff0d093dfb3af64be.tar.bz2
rockbox-e5a257607dd93afe239a03dff0d093dfb3af64be.tar.xz
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
-rw-r--r--apps/plugin.c5
-rw-r--r--apps/plugin.h9
2 files changed, 12 insertions, 2 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 51ef40f..1196a88 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -565,6 +565,11 @@ static const struct plugin_api rockbox_api = {
/* statusbars */
&statusbars,
gui_syncstatusbar_draw,
+#ifdef HAVE_LCD_BITMAP
+ sb_skin_get_info_vp,
+ sb_skin_update,
+#endif
+
/* options */
get_settings_list,
find_setting,
diff --git a/apps/plugin.h b/apps/plugin.h
index edad8c4..21ec7e4 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -84,6 +84,7 @@ void* plugin_get_buffer(size_t *buffer_size);
#include "scrollbar.h"
#include "jpeg_load.h"
#include "../recorder/bmp.h"
+#include "statusbar-skinned.h"
#endif
#include "statusbar.h"
#include "menu.h"
@@ -144,12 +145,12 @@ void* plugin_get_buffer(size_t *buffer_size);
#define PLUGIN_MAGIC 0x526F634B /* RocK */
/* increase this every time the api struct changes */
-#define PLUGIN_API_VERSION 188
+#define PLUGIN_API_VERSION 189
/* update this to latest version if a change to the api struct breaks
backwards compatibility (and please take the opportunity to sort in any
new function which are "waiting" at the end of the function table) */
-#define PLUGIN_MIN_API_VERSION 188
+#define PLUGIN_MIN_API_VERSION 189
/* plugin return codes */
enum plugin_status {
@@ -694,6 +695,10 @@ struct plugin_api {
/* scroll bar */
struct gui_syncstatusbar *statusbars;
void (*gui_syncstatusbar_draw)(struct gui_syncstatusbar * bars, bool force_redraw);
+#ifdef HAVE_LCD_BITMAP
+ struct viewport *(*sb_skin_get_info_vp)(enum screen_type screen);
+ void (*sb_skin_update)(enum screen_type screen, bool force);
+#endif
/* options */
const struct settings_list* (*get_settings_list)(int*count);