summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/gui/gwps.c1
-rw-r--r--apps/plugin.c2
-rw-r--r--apps/plugin.h6
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 @@
#include "quickscreen.h"
#include "pitchscreen.h"
#include "appevents.h"
+#include "viewport.h"
/* currently only on wps_state is needed */
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 = {
lcd_remote_bitmap,
#endif
viewport_set_defaults,
+ viewportmanager_set_statusbar,
/* list */
gui_synclist_init,
@@ -621,7 +622,6 @@ static const struct plugin_api rockbox_api = {
appsversion,
/* new stuff at the end, sort into place next time
the API gets incompatible */
- viewportmanager_set_statusbar,
};
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);
#define PLUGIN_MAGIC 0x526F634B /* RocK */
/* increase this every time the api struct changes */
-#define PLUGIN_API_VERSION 132
+#define PLUGIN_API_VERSION 133
/* 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 131
+#define PLUGIN_MIN_API_VERSION 133
/* plugin return codes */
enum plugin_status {
@@ -318,6 +318,7 @@ struct plugin_api {
int height);
#endif
void (*viewport_set_defaults)(struct viewport *vp, enum screen_type screen);
+ bool (*viewportmanager_set_statusbar)(bool enabled);
/* list */
void (*gui_synclist_init)(struct gui_synclist * lists,
list_get_name callback_get_item_name, void * data,
@@ -785,7 +786,6 @@ struct plugin_api {
const char *appsversion;
/* new stuff at the end, sort into place next time
the API gets incompatible */
- void (*viewportmanager_set_statusbar)(bool enabled);
};
/* plugin header */