1
0
Fork 0
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:
Jonathan Gordon 2009-01-02 01:43:00 +00:00
parent 9296126417
commit b86f2d05fc
3 changed files with 5 additions and 4 deletions

View file

@ -62,6 +62,7 @@
#include "quickscreen.h" #include "quickscreen.h"
#include "pitchscreen.h" #include "pitchscreen.h"
#include "appevents.h" #include "appevents.h"
#include "viewport.h"
/* currently only on wps_state is needed */ /* currently only on wps_state is needed */
struct wps_state wps_state; struct wps_state wps_state;

View file

@ -210,6 +210,7 @@ static const struct plugin_api rockbox_api = {
lcd_remote_bitmap, lcd_remote_bitmap,
#endif #endif
viewport_set_defaults, viewport_set_defaults,
viewportmanager_set_statusbar,
/* list */ /* list */
gui_synclist_init, gui_synclist_init,
@ -621,7 +622,6 @@ static const struct plugin_api rockbox_api = {
appsversion, appsversion,
/* new stuff at the end, sort into place next time /* new stuff at the end, sort into place next time
the API gets incompatible */ the API gets incompatible */
viewportmanager_set_statusbar,
}; };
int plugin_load(const char* plugin, const void* parameter) int plugin_load(const char* plugin, const void* parameter)

View file

@ -132,12 +132,12 @@ void* plugin_get_buffer(size_t *buffer_size);
#define PLUGIN_MAGIC 0x526F634B /* RocK */ #define PLUGIN_MAGIC 0x526F634B /* RocK */
/* increase this every time the api struct changes */ /* 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 /* update this to latest version if a change to the api struct breaks
backwards compatibility (and please take the opportunity to sort in any backwards compatibility (and please take the opportunity to sort in any
new function which are "waiting" at the end of the function table) */ 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 */ /* plugin return codes */
enum plugin_status { enum plugin_status {
@ -318,6 +318,7 @@ struct plugin_api {
int height); int height);
#endif #endif
void (*viewport_set_defaults)(struct viewport *vp, enum screen_type screen); void (*viewport_set_defaults)(struct viewport *vp, enum screen_type screen);
bool (*viewportmanager_set_statusbar)(bool enabled);
/* list */ /* list */
void (*gui_synclist_init)(struct gui_synclist * lists, void (*gui_synclist_init)(struct gui_synclist * lists,
list_get_name callback_get_item_name, void * data, list_get_name callback_get_item_name, void * data,
@ -785,7 +786,6 @@ struct plugin_api {
const char *appsversion; const char *appsversion;
/* new stuff at the end, sort into place next time /* new stuff at the end, sort into place next time
the API gets incompatible */ the API gets incompatible */
void (*viewportmanager_set_statusbar)(bool enabled);
}; };
/* plugin header */ /* plugin header */