diff --git a/apps/plugin.c b/apps/plugin.c index b03ed3109a..aa24b327ca 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -607,13 +607,15 @@ static const struct plugin_api rockbox_api = { #endif thread_thaw, + +#if (CONFIG_CODEC == SWCODEC) semaphore_init, semaphore_wait, semaphore_release, event_init, event_wait, event_set_state, - +#endif /* new stuff at the end, sort into place next time the API gets incompatible */ diff --git a/apps/plugin.h b/apps/plugin.h index 6dd81caf7e..c6d258377f 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -763,14 +763,16 @@ struct plugin_api { char *buf, int buflen); #endif - void (*thread_thaw)(struct thread_entry *thread); + void (*thread_thaw)(struct thread_entry *thread); + +#if (CONFIG_CODEC == SWCODEC) void (*semaphore_init)(struct semaphore *s, int max, int start); void (*semaphore_wait)(struct semaphore *s); void (*semaphore_release)(struct semaphore *s); void (*event_init)(struct event *e, unsigned int flags); void (*event_wait)(struct event *e, unsigned int for_state); void (*event_set_state)(struct event *e, unsigned int state); - +#endif /* new stuff at the end, sort into place next time the API gets incompatible */