diff options
-rw-r--r-- | apps/plugin.c | 3 | ||||
-rw-r--r-- | 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 = { | |||
431 | 431 | ||
432 | commit_dcache, | 432 | commit_dcache, |
433 | commit_discard_dcache, | 433 | commit_discard_dcache, |
434 | commit_discard_idcache, | ||
434 | 435 | ||
435 | lc_open, | 436 | lc_open, |
436 | lc_open_from_mem, | 437 | lc_open_from_mem, |
@@ -793,8 +794,6 @@ static const struct plugin_api rockbox_api = { | |||
793 | 794 | ||
794 | /* new stuff at the end, sort into place next time | 795 | /* new stuff at the end, sort into place next time |
795 | the API gets incompatible */ | 796 | the API gets incompatible */ |
796 | |||
797 | commit_discard_idcache, | ||
798 | }; | 797 | }; |
799 | 798 | ||
800 | int plugin_load(const char* plugin, const void* parameter) | 799 | 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); | |||
153 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 153 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
154 | 154 | ||
155 | /* increase this every time the api struct changes */ | 155 | /* increase this every time the api struct changes */ |
156 | #define PLUGIN_API_VERSION 215 | 156 | #define PLUGIN_API_VERSION 216 |
157 | 157 | ||
158 | /* update this to latest version if a change to the api struct breaks | 158 | /* update this to latest version if a change to the api struct breaks |
159 | backwards compatibility (and please take the opportunity to sort in any | 159 | backwards compatibility (and please take the opportunity to sort in any |
160 | new function which are "waiting" at the end of the function table) */ | 160 | new function which are "waiting" at the end of the function table) */ |
161 | #define PLUGIN_MIN_API_VERSION 214 | 161 | #define PLUGIN_MIN_API_VERSION 216 |
162 | 162 | ||
163 | /* plugin return codes */ | 163 | /* plugin return codes */ |
164 | /* internal returns start at 0x100 to make exit(1..255) work */ | 164 | /* internal returns start at 0x100 to make exit(1..255) work */ |
@@ -521,6 +521,7 @@ struct plugin_api { | |||
521 | 521 | ||
522 | void (*commit_dcache)(void); | 522 | void (*commit_dcache)(void); |
523 | void (*commit_discard_dcache)(void); | 523 | void (*commit_discard_dcache)(void); |
524 | void (*commit_discard_idcache)(void); | ||
524 | 525 | ||
525 | /* load code api for overlay */ | 526 | /* load code api for overlay */ |
526 | void* (*lc_open)(const char *filename, unsigned char *buf, size_t buf_size); | 527 | void* (*lc_open)(const char *filename, unsigned char *buf, size_t buf_size); |
@@ -952,8 +953,6 @@ struct plugin_api { | |||
952 | 953 | ||
953 | /* new stuff at the end, sort into place next time | 954 | /* new stuff at the end, sort into place next time |
954 | the API gets incompatible */ | 955 | the API gets incompatible */ |
955 | |||
956 | void (*commit_discard_idcache)(void); | ||
957 | }; | 956 | }; |
958 | 957 | ||
959 | /* plugin header */ | 958 | /* plugin header */ |