diff options
author | Yoshihisa Uchida <uchida@rockbox.org> | 2010-07-07 12:42:15 +0000 |
---|---|---|
committer | Yoshihisa Uchida <uchida@rockbox.org> | 2010-07-07 12:42:15 +0000 |
commit | 3691435c25b73925029df0c606bfd584f0799621 (patch) | |
tree | 965b259249af4f0aca4742912cf94b8ec0c7373a | |
parent | 276dfa23b611a85bedebceb986d0b4549a934187 (diff) | |
download | rockbox-3691435c25b73925029df0c606bfd584f0799621.tar.gz rockbox-3691435c25b73925029df0c606bfd584f0799621.zip |
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
-rw-r--r-- | apps/plugin.c | 10 | ||||
-rw-r--r-- | 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 = { | |||
565 | /* statusbars */ | 565 | /* statusbars */ |
566 | &statusbars, | 566 | &statusbars, |
567 | gui_syncstatusbar_draw, | 567 | gui_syncstatusbar_draw, |
568 | #ifdef HAVE_LCD_BITMAP | ||
569 | sb_skin_get_info_vp, | ||
570 | sb_skin_update, | ||
571 | #endif | ||
572 | 568 | ||
573 | /* options */ | 569 | /* options */ |
574 | get_settings_list, | 570 | get_settings_list, |
@@ -722,6 +718,12 @@ static const struct plugin_api rockbox_api = { | |||
722 | #endif | 718 | #endif |
723 | 719 | ||
724 | rbversion, | 720 | rbversion, |
721 | |||
722 | #ifdef HAVE_LCD_BITMAP | ||
723 | sb_skin_get_info_vp, | ||
724 | sb_skin_update, | ||
725 | #endif | ||
726 | |||
725 | /* new stuff at the end, sort into place next time | 727 | /* new stuff at the end, sort into place next time |
726 | the API gets incompatible */ | 728 | the API gets incompatible */ |
727 | }; | 729 | }; |
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 { | |||
695 | /* scroll bar */ | 695 | /* scroll bar */ |
696 | struct gui_syncstatusbar *statusbars; | 696 | struct gui_syncstatusbar *statusbars; |
697 | 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 | ||
702 | 698 | ||
703 | /* options */ | 699 | /* options */ |
704 | const struct settings_list* (*get_settings_list)(int*count); | 700 | const struct settings_list* (*get_settings_list)(int*count); |
@@ -889,6 +885,12 @@ struct plugin_api { | |||
889 | #endif | 885 | #endif |
890 | 886 | ||
891 | const char *rbversion; | 887 | const char *rbversion; |
888 | |||
889 | #ifdef HAVE_LCD_BITMAP | ||
890 | struct viewport *(*sb_skin_get_info_vp)(enum screen_type screen); | ||
891 | void (*sb_skin_update)(enum screen_type screen, bool force); | ||
892 | #endif | ||
893 | |||
892 | /* new stuff at the end, sort into place next time | 894 | /* new stuff at the end, sort into place next time |
893 | the API gets incompatible */ | 895 | the API gets incompatible */ |
894 | }; | 896 | }; |