diff options
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 6b198686f2..7bb1c7fc5f 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -126,12 +126,12 @@ void* plugin_get_buffer(size_t *buffer_size); | |||
126 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 126 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
127 | 127 | ||
128 | /* increase this every time the api struct changes */ | 128 | /* increase this every time the api struct changes */ |
129 | #define PLUGIN_API_VERSION 135 | 129 | #define PLUGIN_API_VERSION 136 |
130 | 130 | ||
131 | /* update this to latest version if a change to the api struct breaks | 131 | /* update this to latest version if a change to the api struct breaks |
132 | backwards compatibility (and please take the opportunity to sort in any | 132 | backwards compatibility (and please take the opportunity to sort in any |
133 | new function which are "waiting" at the end of the function table) */ | 133 | new function which are "waiting" at the end of the function table) */ |
134 | #define PLUGIN_MIN_API_VERSION 135 | 134 | #define PLUGIN_MIN_API_VERSION 136 |
135 | 135 | ||
136 | /* plugin return codes */ | 136 | /* plugin return codes */ |
137 | enum plugin_status { | 137 | enum plugin_status { |
@@ -419,7 +419,6 @@ struct plugin_api { | |||
419 | void (*mutex_init)(struct mutex *m); | 419 | void (*mutex_init)(struct mutex *m); |
420 | void (*mutex_lock)(struct mutex *m); | 420 | void (*mutex_lock)(struct mutex *m); |
421 | void (*mutex_unlock)(struct mutex *m); | 421 | void (*mutex_unlock)(struct mutex *m); |
422 | size_t (*align_buffer)(void **start, size_t size, size_t align); | ||
423 | #endif | 422 | #endif |
424 | 423 | ||
425 | void (*reset_poweroff_timer)(void); | 424 | void (*reset_poweroff_timer)(void); |
@@ -884,13 +883,5 @@ enum plugin_status plugin_start(const struct plugin_api* rockbox, const void* pa | |||
884 | 883 | ||
885 | #endif /* CACHE_FUNCTION_WRAPPERS */ | 884 | #endif /* CACHE_FUNCTION_WRAPPERS */ |
886 | 885 | ||
887 | #ifndef ALIGN_BUFFER_WRAPPER | ||
888 | #define ALIGN_BUFFER_WRAPPER(api) \ | ||
889 | size_t align_buffer(void **start, size_t size, size_t align) \ | ||
890 | { \ | ||
891 | return (api)->align_buffer(start, size, align); \ | ||
892 | } | ||
893 | #endif /* ALIGN_BUFFER_WRAPPER */ | ||
894 | |||
895 | #endif /* __PCTOOL__ */ | 886 | #endif /* __PCTOOL__ */ |
896 | #endif | 887 | #endif |