summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2009-01-13 13:48:26 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2009-01-13 13:48:26 +0000
commit2fbf09752d385af861279af195d68f920859202d (patch)
tree98bf09ebc24217d122b61c2a079337b793c35d9b /apps/plugin.h
parentc0d9084d6a5182460da0472a4e88d6d078adb86e (diff)
downloadrockbox-2fbf09752d385af861279af195d68f920859202d.zip
rockbox-2fbf09752d385af861279af195d68f920859202d.tar.gz
rockbox-2fbf09752d385af861279af195d68f920859202d.tar.bz2
rockbox-2fbf09752d385af861279af195d68f920859202d.tar.xz
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.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 6b19868..7bb1c7f 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