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
This commit is contained in:
Thomas Martitz 2009-02-11 16:37:12 +00:00
parent f2d5c3532f
commit 548109084f
4 changed files with 18 additions and 18 deletions

View file

@ -101,6 +101,9 @@ struct codec_api ci = {
NULL, /* configure */
/* kernel/ system */
#ifdef CPU_ARM
__div0,
#endif
PREFIX(sleep),
yield,
@ -169,9 +172,6 @@ struct codec_api ci = {
/* new stuff at the end, sort into place next time
the API gets incompatible */
#ifdef CPU_ARM
__div0,
#endif
};
void codec_get_full_path(char *path, const char *codec_root_fn)

View file

@ -75,12 +75,12 @@
#define CODEC_ENC_MAGIC 0x52454E43 /* RENC */
/* increase this every time the api struct changes */
#define CODEC_API_VERSION 31
#define CODEC_API_VERSION 32
/* 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 CODEC_MIN_API_VERSION 30
#define CODEC_MIN_API_VERSION 32
/* codec return codes */
enum codec_status {
@ -153,6 +153,9 @@ struct codec_api {
void (*configure)(int setting, intptr_t value);
/* kernel/ system */
#ifdef CPU_ARM
void (*__div0)(void);
#endif
void (*sleep)(int ticks);
void (*yield)(void);
@ -233,9 +236,6 @@ struct codec_api {
/* new stuff at the end, sort into place next time
the API gets incompatible */
#ifdef CPU_ARM
void (*__div0)(void);
#endif
};
/* codec header */

View file

@ -282,6 +282,7 @@ static const struct plugin_api rockbox_api = {
reload_directory,
create_numbered_filename,
file_exists,
strip_extension,
/* dir */
opendir,
@ -292,6 +293,9 @@ static const struct plugin_api rockbox_api = {
dir_exists,
/* kernel/ system */
#ifdef CPU_ARM
__div0,
#endif
PREFIX(sleep),
yield,
&current_tick,
@ -627,10 +631,6 @@ static const struct plugin_api rockbox_api = {
appsversion,
/* new stuff at the end, sort into place next time
the API gets incompatible */
#ifdef CPU_ARM
__div0,
#endif
strip_extension
};
int plugin_load(const char* plugin, const void* parameter)

View file

@ -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 */