summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h12
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 */
138enum plugin_status { 138enum 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 */