diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2009-01-02 01:43:00 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2009-01-02 01:43:00 +0000 |
commit | b86f2d05fcfdeda187a1b1b33f1a05fbdaa5d543 (patch) | |
tree | e005981304fd2716fe5cfbf345bb43b5a2609e1b /apps | |
parent | 9296126417be3be3de2f9a8300eb35a042790c74 (diff) | |
download | rockbox-b86f2d05fcfdeda187a1b1b33f1a05fbdaa5d543.tar.gz rockbox-b86f2d05fcfdeda187a1b1b33f1a05fbdaa5d543.zip |
woops... fix the header and bump the plugin API
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19636 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/gui/gwps.c | 1 | ||||
-rw-r--r-- | apps/plugin.c | 2 | ||||
-rw-r--r-- | apps/plugin.h | 6 |
3 files changed, 5 insertions, 4 deletions
diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c index 6faf6e91f9..1f90077baa 100644 --- a/apps/gui/gwps.c +++ b/apps/gui/gwps.c | |||
@@ -62,6 +62,7 @@ | |||
62 | #include "quickscreen.h" | 62 | #include "quickscreen.h" |
63 | #include "pitchscreen.h" | 63 | #include "pitchscreen.h" |
64 | #include "appevents.h" | 64 | #include "appevents.h" |
65 | #include "viewport.h" | ||
65 | 66 | ||
66 | /* currently only on wps_state is needed */ | 67 | /* currently only on wps_state is needed */ |
67 | struct wps_state wps_state; | 68 | struct wps_state wps_state; |
diff --git a/apps/plugin.c b/apps/plugin.c index 5e02d33a95..3efd31ccc9 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -210,6 +210,7 @@ static const struct plugin_api rockbox_api = { | |||
210 | lcd_remote_bitmap, | 210 | lcd_remote_bitmap, |
211 | #endif | 211 | #endif |
212 | viewport_set_defaults, | 212 | viewport_set_defaults, |
213 | viewportmanager_set_statusbar, | ||
213 | 214 | ||
214 | /* list */ | 215 | /* list */ |
215 | gui_synclist_init, | 216 | gui_synclist_init, |
@@ -621,7 +622,6 @@ static const struct plugin_api rockbox_api = { | |||
621 | appsversion, | 622 | appsversion, |
622 | /* new stuff at the end, sort into place next time | 623 | /* new stuff at the end, sort into place next time |
623 | the API gets incompatible */ | 624 | the API gets incompatible */ |
624 | viewportmanager_set_statusbar, | ||
625 | }; | 625 | }; |
626 | 626 | ||
627 | int plugin_load(const char* plugin, const void* parameter) | 627 | int plugin_load(const char* plugin, const void* parameter) |
diff --git a/apps/plugin.h b/apps/plugin.h index 440541d510..fbf20e84e4 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -132,12 +132,12 @@ void* plugin_get_buffer(size_t *buffer_size); | |||
132 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 132 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
133 | 133 | ||
134 | /* increase this every time the api struct changes */ | 134 | /* increase this every time the api struct changes */ |
135 | #define PLUGIN_API_VERSION 132 | 135 | #define PLUGIN_API_VERSION 133 |
136 | 136 | ||
137 | /* update this to latest version if a change to the api struct breaks | 137 | /* update this to latest version if a change to the api struct breaks |
138 | backwards compatibility (and please take the opportunity to sort in any | 138 | backwards compatibility (and please take the opportunity to sort in any |
139 | new function which are "waiting" at the end of the function table) */ | 139 | new function which are "waiting" at the end of the function table) */ |
140 | #define PLUGIN_MIN_API_VERSION 131 | 140 | #define PLUGIN_MIN_API_VERSION 133 |
141 | 141 | ||
142 | /* plugin return codes */ | 142 | /* plugin return codes */ |
143 | enum plugin_status { | 143 | enum plugin_status { |
@@ -318,6 +318,7 @@ struct plugin_api { | |||
318 | int height); | 318 | int height); |
319 | #endif | 319 | #endif |
320 | void (*viewport_set_defaults)(struct viewport *vp, enum screen_type screen); | 320 | void (*viewport_set_defaults)(struct viewport *vp, enum screen_type screen); |
321 | bool (*viewportmanager_set_statusbar)(bool enabled); | ||
321 | /* list */ | 322 | /* list */ |
322 | void (*gui_synclist_init)(struct gui_synclist * lists, | 323 | void (*gui_synclist_init)(struct gui_synclist * lists, |
323 | list_get_name callback_get_item_name, void * data, | 324 | list_get_name callback_get_item_name, void * data, |
@@ -785,7 +786,6 @@ struct plugin_api { | |||
785 | const char *appsversion; | 786 | const char *appsversion; |
786 | /* new stuff at the end, sort into place next time | 787 | /* new stuff at the end, sort into place next time |
787 | the API gets incompatible */ | 788 | the API gets incompatible */ |
788 | void (*viewportmanager_set_statusbar)(bool enabled); | ||
789 | }; | 789 | }; |
790 | 790 | ||
791 | /* plugin header */ | 791 | /* plugin header */ |