diff options
author | Andrew Mahone <andrew.mahone@gmail.com> | 2009-01-13 13:48:26 +0000 |
---|---|---|
committer | Andrew Mahone <andrew.mahone@gmail.com> | 2009-01-13 13:48:26 +0000 |
commit | 2fbf09752d385af861279af195d68f920859202d (patch) | |
tree | 98bf09ebc24217d122b61c2a079337b793c35d9b /apps/plugin.h | |
parent | c0d9084d6a5182460da0472a4e88d6d078adb86e (diff) | |
download | rockbox-2fbf09752d385af861279af195d68f920859202d.tar.gz rockbox-2fbf09752d385af861279af195d68f920859202d.zip |
remove align_buffer from firmare/general.c, replacing with ALIGN_BUFFER macro, and replace all uses of it (only resize.c in core, and pictureflow and mpegplayer plugins), remove it from plugin_api,
and remove wrapper for it from plugin.h
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19758 a1c6a512-1295-4272-9138-f99709370657
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 |