diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugin.c | 4 | ||||
-rw-r--r-- | apps/plugin.h | 6 |
2 files changed, 7 insertions, 3 deletions
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 = { | |||
607 | #endif | 607 | #endif |
608 | 608 | ||
609 | thread_thaw, | 609 | thread_thaw, |
610 | |||
611 | #if (CONFIG_CODEC == SWCODEC) | ||
610 | semaphore_init, | 612 | semaphore_init, |
611 | semaphore_wait, | 613 | semaphore_wait, |
612 | semaphore_release, | 614 | semaphore_release, |
613 | event_init, | 615 | event_init, |
614 | event_wait, | 616 | event_wait, |
615 | event_set_state, | 617 | event_set_state, |
616 | 618 | #endif | |
617 | /* new stuff at the end, sort into place next time | 619 | /* new stuff at the end, sort into place next time |
618 | the API gets incompatible */ | 620 | the API gets incompatible */ |
619 | 621 | ||
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 { | |||
763 | char *buf, int buflen); | 763 | char *buf, int buflen); |
764 | #endif | 764 | #endif |
765 | 765 | ||
766 | void (*thread_thaw)(struct thread_entry *thread); | 766 | void (*thread_thaw)(struct thread_entry *thread); |
767 | |||
768 | #if (CONFIG_CODEC == SWCODEC) | ||
767 | void (*semaphore_init)(struct semaphore *s, int max, int start); | 769 | void (*semaphore_init)(struct semaphore *s, int max, int start); |
768 | void (*semaphore_wait)(struct semaphore *s); | 770 | void (*semaphore_wait)(struct semaphore *s); |
769 | void (*semaphore_release)(struct semaphore *s); | 771 | void (*semaphore_release)(struct semaphore *s); |
770 | void (*event_init)(struct event *e, unsigned int flags); | 772 | void (*event_init)(struct event *e, unsigned int flags); |
771 | void (*event_wait)(struct event *e, unsigned int for_state); | 773 | void (*event_wait)(struct event *e, unsigned int for_state); |
772 | void (*event_set_state)(struct event *e, unsigned int state); | 774 | void (*event_set_state)(struct event *e, unsigned int state); |
773 | 775 | #endif | |
774 | 776 | ||
775 | /* new stuff at the end, sort into place next time | 777 | /* new stuff at the end, sort into place next time |
776 | the API gets incompatible */ | 778 | the API gets incompatible */ |