From 2fbf09752d385af861279af195d68f920859202d Mon Sep 17 00:00:00 2001 From: Andrew Mahone Date: Tue, 13 Jan 2009 13:48:26 +0000 Subject: 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 --- apps/plugin.h | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'apps/plugin.h') 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); #define PLUGIN_MAGIC 0x526F634B /* RocK */ /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 135 +#define PLUGIN_API_VERSION 136 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any new function which are "waiting" at the end of the function table) */ -#define PLUGIN_MIN_API_VERSION 135 +#define PLUGIN_MIN_API_VERSION 136 /* plugin return codes */ enum plugin_status { @@ -419,7 +419,6 @@ struct plugin_api { void (*mutex_init)(struct mutex *m); void (*mutex_lock)(struct mutex *m); void (*mutex_unlock)(struct mutex *m); - size_t (*align_buffer)(void **start, size_t size, size_t align); #endif void (*reset_poweroff_timer)(void); @@ -884,13 +883,5 @@ enum plugin_status plugin_start(const struct plugin_api* rockbox, const void* pa #endif /* CACHE_FUNCTION_WRAPPERS */ -#ifndef ALIGN_BUFFER_WRAPPER -#define ALIGN_BUFFER_WRAPPER(api) \ - size_t align_buffer(void **start, size_t size, size_t align) \ - { \ - return (api)->align_buffer(start, size, align); \ - } -#endif /* ALIGN_BUFFER_WRAPPER */ - #endif /* __PCTOOL__ */ #endif -- cgit v1.2.3