diff options
author | Thomas Martitz <kugel@rockbox.org> | 2009-02-11 16:37:12 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2009-02-11 16:37:12 +0000 |
commit | 548109084f739cf74d2263cbd136f82eb67ea9d5 (patch) | |
tree | 65038ab71d12e0ee6cb236b518b0ccf3bb531c8c /apps/plugin.h | |
parent | f2d5c3532fd21c04e77aa86732742b578283b697 (diff) | |
download | rockbox-548109084f739cf74d2263cbd136f82eb67ea9d5.tar.gz rockbox-548109084f739cf74d2263cbd136f82eb67ea9d5.zip |
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
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 12 |
1 files changed, 6 insertions, 6 deletions
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); | |||
127 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 127 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
128 | 128 | ||
129 | /* increase this every time the api struct changes */ | 129 | /* increase this every time the api struct changes */ |
130 | #define PLUGIN_API_VERSION 142 | 130 | #define PLUGIN_API_VERSION 143 |
131 | 131 | ||
132 | /* update this to latest version if a change to the api struct breaks | 132 | /* update this to latest version if a change to the api struct breaks |
133 | backwards compatibility (and please take the opportunity to sort in any | 133 | backwards compatibility (and please take the opportunity to sort in any |
134 | new function which are "waiting" at the end of the function table) */ | 134 | new function which are "waiting" at the end of the function table) */ |
135 | #define PLUGIN_MIN_API_VERSION 142 | 135 | #define PLUGIN_MIN_API_VERSION 143 |
136 | 136 | ||
137 | /* plugin return codes */ | 137 | /* plugin return codes */ |
138 | enum plugin_status { | 138 | enum plugin_status { |
@@ -389,6 +389,7 @@ struct plugin_api { | |||
389 | const char *prefix, const char *suffix, | 389 | const char *prefix, const char *suffix, |
390 | int numberlen IF_CNFN_NUM_(, int *num)); | 390 | int numberlen IF_CNFN_NUM_(, int *num)); |
391 | bool (*file_exists)(const char *file); | 391 | bool (*file_exists)(const char *file); |
392 | char* (*strip_extension)(char* buffer, int buffer_size, const char *filename); | ||
392 | 393 | ||
393 | 394 | ||
394 | /* dir */ | 395 | /* dir */ |
@@ -400,6 +401,9 @@ struct plugin_api { | |||
400 | bool (*dir_exists)(const char *path); | 401 | bool (*dir_exists)(const char *path); |
401 | 402 | ||
402 | /* kernel/ system */ | 403 | /* kernel/ system */ |
404 | #ifdef CPU_ARM | ||
405 | void (*__div0)(void); | ||
406 | #endif | ||
403 | void (*sleep)(int ticks); | 407 | void (*sleep)(int ticks); |
404 | void (*yield)(void); | 408 | void (*yield)(void); |
405 | volatile long* current_tick; | 409 | volatile long* current_tick; |
@@ -783,10 +787,6 @@ struct plugin_api { | |||
783 | const char *appsversion; | 787 | const char *appsversion; |
784 | /* new stuff at the end, sort into place next time | 788 | /* new stuff at the end, sort into place next time |
785 | the API gets incompatible */ | 789 | the API gets incompatible */ |
786 | #ifdef CPU_ARM | ||
787 | void (*__div0)(void); | ||
788 | #endif | ||
789 | char* (*strip_extension)(char* buffer, int buffer_size, const char *filename); | ||
790 | }; | 790 | }; |
791 | 791 | ||
792 | /* plugin header */ | 792 | /* plugin header */ |