1
0
Fork 0
forked from len0rd/rockbox

Bump plugin api and abi version needed for b8439f2. Sort too.

Change-Id: Idcff29c9b89e7dbe7e9c7d2413737e0d598b7831
This commit is contained in:
Thomas Martitz 2012-01-27 09:31:34 +01:00
parent 93a4b32d03
commit c6d69ae8fc
2 changed files with 4 additions and 6 deletions

View file

@ -431,6 +431,7 @@ static const struct plugin_api rockbox_api = {
commit_dcache, commit_dcache,
commit_discard_dcache, commit_discard_dcache,
commit_discard_idcache,
lc_open, lc_open,
lc_open_from_mem, lc_open_from_mem,
@ -793,8 +794,6 @@ static const struct plugin_api rockbox_api = {
/* 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 */
commit_discard_idcache,
}; };
int plugin_load(const char* plugin, const void* parameter) int plugin_load(const char* plugin, const void* parameter)

View file

@ -153,12 +153,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 215 #define PLUGIN_API_VERSION 216
/* 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 214 #define PLUGIN_MIN_API_VERSION 216
/* plugin return codes */ /* plugin return codes */
/* internal returns start at 0x100 to make exit(1..255) work */ /* internal returns start at 0x100 to make exit(1..255) work */
@ -521,6 +521,7 @@ struct plugin_api {
void (*commit_dcache)(void); void (*commit_dcache)(void);
void (*commit_discard_dcache)(void); void (*commit_discard_dcache)(void);
void (*commit_discard_idcache)(void);
/* load code api for overlay */ /* load code api for overlay */
void* (*lc_open)(const char *filename, unsigned char *buf, size_t buf_size); void* (*lc_open)(const char *filename, unsigned char *buf, size_t buf_size);
@ -952,8 +953,6 @@ struct plugin_api {
/* 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 (*commit_discard_idcache)(void);
}; };
/* plugin header */ /* plugin header */