summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 43b9818ffd..de720d41eb 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -145,12 +145,12 @@ void* plugin_get_buffer(size_t *buffer_size);
145#define PLUGIN_MAGIC 0x526F634B /* RocK */ 145#define PLUGIN_MAGIC 0x526F634B /* RocK */
146 146
147/* increase this every time the api struct changes */ 147/* increase this every time the api struct changes */
148#define PLUGIN_API_VERSION 201 148#define PLUGIN_API_VERSION 202
149 149
150/* update this to latest version if a change to the api struct breaks 150/* update this to latest version if a change to the api struct breaks
151 backwards compatibility (and please take the opportunity to sort in any 151 backwards compatibility (and please take the opportunity to sort in any
152 new function which are "waiting" at the end of the function table) */ 152 new function which are "waiting" at the end of the function table) */
153#define PLUGIN_MIN_API_VERSION 200 153#define PLUGIN_MIN_API_VERSION 202
154 154
155/* plugin return codes */ 155/* plugin return codes */
156/* internal returns start at 0x100 to make exit(1..255) work */ 156/* internal returns start at 0x100 to make exit(1..255) work */
@@ -479,6 +479,7 @@ struct plugin_api {
479 const char *name 479 const char *name
480 IF_PRIO(, int priority) 480 IF_PRIO(, int priority)
481 IF_COP(, unsigned int core)); 481 IF_COP(, unsigned int core));
482 unsigned int (*thread_self)(void);
482 void (*thread_exit)(void); 483 void (*thread_exit)(void);
483 void (*thread_wait)(unsigned int thread_id); 484 void (*thread_wait)(unsigned int thread_id);
484#if CONFIG_CODEC == SWCODEC 485#if CONFIG_CODEC == SWCODEC
@@ -871,7 +872,6 @@ struct plugin_api {
871 ssize_t (*bufgettail)(int handle_id, size_t size, void **data); 872 ssize_t (*bufgettail)(int handle_id, size_t size, void **data);
872 ssize_t (*bufcuttail)(int handle_id, size_t size); 873 ssize_t (*bufcuttail)(int handle_id, size_t size);
873 874
874 ssize_t (*buf_get_offset)(int handle_id, void *ptr);
875 ssize_t (*buf_handle_offset)(int handle_id); 875 ssize_t (*buf_handle_offset)(int handle_id);
876 void (*buf_request_buffer_handle)(int handle_id); 876 void (*buf_request_buffer_handle)(int handle_id);
877 void (*buf_set_base_handle)(int handle_id); 877 void (*buf_set_base_handle)(int handle_id);
@@ -909,7 +909,6 @@ struct plugin_api {
909 909
910 /* new stuff at the end, sort into place next time 910 /* new stuff at the end, sort into place next time
911 the API gets incompatible */ 911 the API gets incompatible */
912 unsigned int (*thread_self)(void);
913}; 912};
914 913
915/* plugin header */ 914/* plugin header */