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) | |
download | rockbox-95ec1f7a6fc38ce978c51c7453a21271926d2658.tar.gz rockbox-95ec1f7a6fc38ce978c51c7453a21271926d2658.zip |
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); | |||
160 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 160 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
161 | 161 | ||
162 | /* increase this every time the api struct changes */ | 162 | /* increase this every time the api struct changes */ |
163 | #define PLUGIN_API_VERSION 234 | 163 | #define PLUGIN_API_VERSION 235 |
164 | 164 | ||
165 | /* update this to latest version if a change to the api struct breaks | 165 | /* update this to latest version if a change to the api struct breaks |
166 | backwards compatibility (and please take the opportunity to sort in any | 166 | backwards compatibility (and please take the opportunity to sort in any |
167 | new function which are "waiting" at the end of the function table) */ | 167 | new function which are "waiting" at the end of the function table) */ |
168 | #define PLUGIN_MIN_API_VERSION 234 | 168 | #define PLUGIN_MIN_API_VERSION 235 |
169 | 169 | ||
170 | /* plugin return codes */ | 170 | /* plugin return codes */ |
171 | /* internal returns start at 0x100 to make exit(1..255) work */ | 171 | /* internal returns start at 0x100 to make exit(1..255) work */ |
@@ -923,24 +923,6 @@ struct plugin_api { | |||
923 | 923 | ||
924 | void (*led)(bool on); | 924 | void (*led)(bool on); |
925 | 925 | ||
926 | #if (CONFIG_CODEC == SWCODEC) | ||
927 | /* buffering API */ | ||
928 | int (*bufopen)(const char *file, off_t offset, enum data_type type, | ||
929 | void *user_data); | ||
930 | int (*bufalloc)(const void *src, size_t size, enum data_type type); | ||
931 | bool (*bufclose)(int handle_id); | ||
932 | int (*bufseek)(int handle_id, size_t newpos); | ||
933 | int (*bufadvance)(int handle_id, off_t offset); | ||
934 | ssize_t (*bufread)(int handle_id, size_t size, void *dest); | ||
935 | ssize_t (*bufgetdata)(int handle_id, size_t size, void **data); | ||
936 | ssize_t (*bufgettail)(int handle_id, size_t size, void **data); | ||
937 | ssize_t (*bufcuttail)(int handle_id, size_t size); | ||
938 | |||
939 | ssize_t (*buf_handle_offset)(int handle_id); | ||
940 | void (*buf_set_base_handle)(int handle_id); | ||
941 | size_t (*buf_used)(void); | ||
942 | #endif | ||
943 | |||
944 | #ifdef HAVE_TAGCACHE | 926 | #ifdef HAVE_TAGCACHE |
945 | bool (*tagcache_search)(struct tagcache_search *tcs, int tag); | 927 | bool (*tagcache_search)(struct tagcache_search *tcs, int tag); |
946 | void (*tagcache_search_set_uniqbuf)(struct tagcache_search *tcs, | 928 | void (*tagcache_search_set_uniqbuf)(struct tagcache_search *tcs, |