summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/plugin.c4
-rw-r--r--apps/plugin.h6
2 files changed, 7 insertions, 3 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 6ef8623eea..4ba1396085 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -609,10 +609,12 @@ static const struct plugin_api rockbox_api = {
609 609
610 thread_thaw, 610 thread_thaw,
611 611
612#if (CONFIG_CODEC == SWCODEC) 612#ifdef HAVE_SEMAPHORE_OBJECTS
613 semaphore_init, 613 semaphore_init,
614 semaphore_wait, 614 semaphore_wait,
615 semaphore_release, 615 semaphore_release,
616#endif
617#ifdef HAVE_EVENT_OBJECTS
616 event_init, 618 event_init,
617 event_wait, 619 event_wait,
618 event_set_state, 620 event_set_state,
diff --git a/apps/plugin.h b/apps/plugin.h
index 409108d2d9..20724f8706 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -764,11 +764,13 @@ struct plugin_api {
764#endif 764#endif
765 765
766 void (*thread_thaw)(struct thread_entry *thread); 766 void (*thread_thaw)(struct thread_entry *thread);
767 767
768#if (CONFIG_CODEC == SWCODEC) 768#ifdef HAVE_SEMAPHORE_OBJECTS
769 void (*semaphore_init)(struct semaphore *s, int max, int start); 769 void (*semaphore_init)(struct semaphore *s, int max, int start);
770 void (*semaphore_wait)(struct semaphore *s); 770 void (*semaphore_wait)(struct semaphore *s);
771 void (*semaphore_release)(struct semaphore *s); 771 void (*semaphore_release)(struct semaphore *s);
772#endif
773#ifdef HAVE_EVENT_OBJECTS
772 void (*event_init)(struct event *e, unsigned int flags); 774 void (*event_init)(struct event *e, unsigned int flags);
773 void (*event_wait)(struct event *e, unsigned int for_state); 775 void (*event_wait)(struct event *e, unsigned int for_state);
774 void (*event_set_state)(struct event *e, unsigned int state); 776 void (*event_set_state)(struct event *e, unsigned int state);