From 3691435c25b73925029df0c606bfd584f0799621 Mon Sep 17 00:00:00 2001 From: Yoshihisa Uchida Date: Wed, 7 Jul 2010 12:42:15 +0000 Subject: plugin api: new functions set the end of the structure. thanks to Frank Gevaerts. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27335 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 10 ++++++---- apps/plugin.h | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/apps/plugin.c b/apps/plugin.c index 1196a88195..4c0ec84aa0 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -565,10 +565,6 @@ 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, @@ -722,6 +718,12 @@ static const struct plugin_api rockbox_api = { #endif rbversion, + +#ifdef HAVE_LCD_BITMAP + sb_skin_get_info_vp, + sb_skin_update, +#endif + /* new stuff at the end, sort into place next time the API gets incompatible */ }; diff --git a/apps/plugin.h b/apps/plugin.h index 21ec7e42df..bc37c9ce95 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -695,10 +695,6 @@ 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); @@ -889,6 +885,12 @@ struct plugin_api { #endif const char *rbversion; + +#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 + /* new stuff at the end, sort into place next time the API gets incompatible */ }; -- cgit v1.2.3