summaryrefslogtreecommitdiff
path: root/apps/codecs.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs.h')
-rw-r--r--apps/codecs.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/apps/codecs.h b/apps/codecs.h
index d2ba00ca2a..29ed2d351b 100644
--- a/apps/codecs.h
+++ b/apps/codecs.h
@@ -80,7 +80,7 @@
80#define CODEC_ENC_MAGIC 0x52454E43 /* RENC */ 80#define CODEC_ENC_MAGIC 0x52454E43 /* RENC */
81 81
82/* increase this every time the api struct changes */ 82/* increase this every time the api struct changes */
83#define CODEC_API_VERSION 20 83#define CODEC_API_VERSION 21
84 84
85/* update this to latest version if a change to the api struct breaks 85/* update this to latest version if a change to the api struct breaks
86 backwards compatibility (and please take the opportunity to sort in any 86 backwards compatibility (and please take the opportunity to sort in any
@@ -236,6 +236,23 @@ struct codec_api {
236#endif 236#endif
237 237
238 struct dsp_config *dsp; 238 struct dsp_config *dsp;
239
240#if NUM_CORES > 1
241 struct thread_entry *
242 (*create_thread)(void (*function)(void), void* stack,
243 int stack_size, unsigned flags, const char *name
244 IF_PRIO(, int priority)
245 IF_COP(, unsigned int core));
246
247 void (*thread_thaw)(struct thread_entry *thread);
248 void (*thread_wait)(struct thread_entry *thread);
249 void (*semaphore_init)(struct semaphore *s, int max, int start);
250 void (*semaphore_wait)(struct semaphore *s);
251 void (*semaphore_release)(struct semaphore *s);
252 void (*event_init)(struct event *e, unsigned int flags);
253 void (*event_wait)(struct event *e, unsigned int for_state);
254 void (*event_set_state)(struct event *e, unsigned int state);
255#endif /* NUM_CORES */
239}; 256};
240 257
241/* codec header */ 258/* codec header */