From c6d69ae8fccf4e1e11fbcb55f98348d5e8f05d64 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Fri, 27 Jan 2012 09:31:34 +0100 Subject: [PATCH] Bump plugin api and abi version needed for b8439f2. Sort too. Change-Id: Idcff29c9b89e7dbe7e9c7d2413737e0d598b7831 --- apps/plugin.c | 3 +-- apps/plugin.h | 7 +++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/apps/plugin.c b/apps/plugin.c index 1ac69da1ea..36de7281d2 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -431,6 +431,7 @@ static const struct plugin_api rockbox_api = { commit_dcache, commit_discard_dcache, + commit_discard_idcache, lc_open, 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 the API gets incompatible */ - - commit_discard_idcache, }; int plugin_load(const char* plugin, const void* parameter) diff --git a/apps/plugin.h b/apps/plugin.h index 8ce6faffb9..2fb085de6d 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -153,12 +153,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 215 +#define PLUGIN_API_VERSION 216 /* 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 214 +#define PLUGIN_MIN_API_VERSION 216 /* plugin return codes */ /* internal returns start at 0x100 to make exit(1..255) work */ @@ -521,6 +521,7 @@ struct plugin_api { void (*commit_dcache)(void); void (*commit_discard_dcache)(void); + void (*commit_discard_idcache)(void); /* load code api for overlay */ 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 the API gets incompatible */ - - void (*commit_discard_idcache)(void); }; /* plugin header */