summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/plugin.c16
-rw-r--r--apps/plugin.h22
2 files changed, 2 insertions, 36 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 33a46a3d84..97ff7c8c43 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -790,22 +790,6 @@ static const struct plugin_api rockbox_api = {
790 detect_flashed_romimage, 790 detect_flashed_romimage,
791#endif 791#endif
792 led, 792 led,
793#if (CONFIG_CODEC == SWCODEC)
794 bufopen,
795 bufalloc,
796 bufclose,
797 bufseek,
798 bufadvance,
799 bufread,
800 bufgetdata,
801 bufgettail,
802 bufcuttail,
803
804 buf_handle_offset,
805 buf_set_base_handle,
806 buf_used,
807#endif
808
809#ifdef HAVE_TAGCACHE 793#ifdef HAVE_TAGCACHE
810 tagcache_search, 794 tagcache_search,
811 tagcache_search_set_uniqbuf, 795 tagcache_search_set_uniqbuf,
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,