From 548109084f739cf74d2263cbd136f82eb67ea9d5 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Wed, 11 Feb 2009 16:37:12 +0000 Subject: Increase codec and plugin API version (due to changes it r19971), and sort the recently added things git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19973 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'apps/plugin.h') diff --git a/apps/plugin.h b/apps/plugin.h index 715f2ec512..50598d5309 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -127,12 +127,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 142 +#define PLUGIN_API_VERSION 143 /* 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 142 +#define PLUGIN_MIN_API_VERSION 143 /* plugin return codes */ enum plugin_status { @@ -389,6 +389,7 @@ struct plugin_api { const char *prefix, const char *suffix, int numberlen IF_CNFN_NUM_(, int *num)); bool (*file_exists)(const char *file); + char* (*strip_extension)(char* buffer, int buffer_size, const char *filename); /* dir */ @@ -400,6 +401,9 @@ struct plugin_api { bool (*dir_exists)(const char *path); /* kernel/ system */ +#ifdef CPU_ARM + void (*__div0)(void); +#endif void (*sleep)(int ticks); void (*yield)(void); volatile long* current_tick; @@ -783,10 +787,6 @@ struct plugin_api { const char *appsversion; /* new stuff at the end, sort into place next time the API gets incompatible */ -#ifdef CPU_ARM - void (*__div0)(void); -#endif - char* (*strip_extension)(char* buffer, int buffer_size, const char *filename); }; /* plugin header */ -- cgit v1.2.3