From 56dd75d204f861785ca78ae1c6eb506d5f2ea7e9 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Wed, 16 Mar 2011 05:38:37 +0000 Subject: Purge buffer and codec APIs existing exclusively in support of mpa.codec and fix that to not require them: buf_get_offset and ci.advance_buffer_loc. Sort APIs; everything must become incompatible. :( git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29595 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'apps/plugin.h') diff --git a/apps/plugin.h b/apps/plugin.h index 43b9818..de720d4 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -145,12 +145,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 201 +#define PLUGIN_API_VERSION 202 /* 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 200 +#define PLUGIN_MIN_API_VERSION 202 /* plugin return codes */ /* internal returns start at 0x100 to make exit(1..255) work */ @@ -479,6 +479,7 @@ struct plugin_api { const char *name IF_PRIO(, int priority) IF_COP(, unsigned int core)); + unsigned int (*thread_self)(void); void (*thread_exit)(void); void (*thread_wait)(unsigned int thread_id); #if CONFIG_CODEC == SWCODEC @@ -871,7 +872,6 @@ struct plugin_api { ssize_t (*bufgettail)(int handle_id, size_t size, void **data); ssize_t (*bufcuttail)(int handle_id, size_t size); - ssize_t (*buf_get_offset)(int handle_id, void *ptr); ssize_t (*buf_handle_offset)(int handle_id); void (*buf_request_buffer_handle)(int handle_id); void (*buf_set_base_handle)(int handle_id); @@ -909,7 +909,6 @@ struct plugin_api { /* new stuff at the end, sort into place next time the API gets incompatible */ - unsigned int (*thread_self)(void); }; /* plugin header */ -- cgit v1.1