forked from len0rd/rockbox
woops... fix the header and bump the plugin API
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19636 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9296126417
commit
b86f2d05fc
3 changed files with 5 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue