diff options
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 ffdfa8fb77..874f6e0069 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -160,12 +160,12 @@ void* plugin_get_buffer(size_t *buffer_size); | |||
160 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 160 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
161 | 161 | ||
162 | /* increase this every time the api struct changes */ | 162 | /* increase this every time the api struct changes */ |
163 | #define PLUGIN_API_VERSION 227 | 163 | #define PLUGIN_API_VERSION 228 |
164 | 164 | ||
165 | /* update this to latest version if a change to the api struct breaks | 165 | /* update this to latest version if a change to the api struct breaks |
166 | backwards compatibility (and please take the opportunity to sort in any | 166 | backwards compatibility (and please take the opportunity to sort in any |
167 | new function which are "waiting" at the end of the function table) */ | 167 | new function which are "waiting" at the end of the function table) */ |
168 | #define PLUGIN_MIN_API_VERSION 227 | 168 | #define PLUGIN_MIN_API_VERSION 228 |
169 | 169 | ||
170 | /* plugin return codes */ | 170 | /* plugin return codes */ |
171 | /* internal returns start at 0x100 to make exit(1..255) work */ | 171 | /* internal returns start at 0x100 to make exit(1..255) work */ |
@@ -450,8 +450,8 @@ struct plugin_api { | |||
450 | void (*storage_spin)(void); | 450 | void (*storage_spin)(void); |
451 | void (*storage_spindown)(int seconds); | 451 | void (*storage_spindown)(int seconds); |
452 | #if USING_STORAGE_CALLBACK | 452 | #if USING_STORAGE_CALLBACK |
453 | void (*register_storage_idle_func)(void (*function)(void *data)); | 453 | void (*register_storage_idle_func)(void (*function)(void)); |
454 | void (*unregister_storage_idle_func)(void (*function)(void *data), bool run); | 454 | void (*unregister_storage_idle_func)(void (*function)(void), bool run); |
455 | #endif /* USING_STORAGE_CALLBACK */ | 455 | #endif /* USING_STORAGE_CALLBACK */ |
456 | void (*reload_directory)(void); | 456 | void (*reload_directory)(void); |
457 | char *(*create_numbered_filename)(char *buffer, const char *path, | 457 | char *(*create_numbered_filename)(char *buffer, const char *path, |
@@ -569,8 +569,8 @@ struct plugin_api { | |||
569 | void (*profile_func_exit)(void *this_fn, void *call_site); | 569 | void (*profile_func_exit)(void *this_fn, void *call_site); |
570 | #endif | 570 | #endif |
571 | /* event api */ | 571 | /* event api */ |
572 | bool (*add_event)(unsigned short id, bool oneshot, void (*handler)(void *data)); | 572 | bool (*add_event)(unsigned short id, void (*handler)(unsigned short id, void *data)); |
573 | void (*remove_event)(unsigned short id, void (*handler)(void *data)); | 573 | void (*remove_event)(unsigned short id, void (*handler)(unsigned short id, void *data)); |
574 | void (*send_event)(unsigned short id, void *data); | 574 | void (*send_event)(unsigned short id, void *data); |
575 | 575 | ||
576 | #if (CONFIG_PLATFORM & PLATFORM_HOSTED) | 576 | #if (CONFIG_PLATFORM & PLATFORM_HOSTED) |