diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2017-12-17 18:43:23 -0500 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2017-12-17 18:43:23 -0500 |
commit | 95ec1f7a6fc38ce978c51c7453a21271926d2658 (patch) | |
tree | e5fa19d981427ab4d79f3cc4223ac4cbc6fbb561 /apps/plugin.h | |
parent | dfff938dff089667038041fcb66262c87c3186c2 (diff) |
Remove buffering functions from plugin API.
They aren't used by anything. Must bump min API version.
Change-Id: I9851ab255fc779fff13cb778517f554e5dd20e28
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index a8e7c2af64..868c2a68e3 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -160,12 +160,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 234 +#define PLUGIN_API_VERSION 235 /* 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 234 +#define PLUGIN_MIN_API_VERSION 235 /* plugin return codes */ /* internal returns start at 0x100 to make exit(1..255) work */ @@ -923,24 +923,6 @@ struct plugin_api { void (*led)(bool on); -#if (CONFIG_CODEC == SWCODEC) - /* buffering API */ - int (*bufopen)(const char *file, off_t offset, enum data_type type, - void *user_data); - int (*bufalloc)(const void *src, size_t size, enum data_type type); - bool (*bufclose)(int handle_id); - int (*bufseek)(int handle_id, size_t newpos); - int (*bufadvance)(int handle_id, off_t offset); - ssize_t (*bufread)(int handle_id, size_t size, void *dest); - ssize_t (*bufgetdata)(int handle_id, size_t size, void **data); - ssize_t (*bufgettail)(int handle_id, size_t size, void **data); - ssize_t (*bufcuttail)(int handle_id, size_t size); - - ssize_t (*buf_handle_offset)(int handle_id); - void (*buf_set_base_handle)(int handle_id); - size_t (*buf_used)(void); -#endif - #ifdef HAVE_TAGCACHE bool (*tagcache_search)(struct tagcache_search *tcs, int tag); void (*tagcache_search_set_uniqbuf)(struct tagcache_search *tcs, |