summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2008-09-20 22:38:09 +0000
committerMichael Giacomelli <giac2000@hotmail.com>2008-09-20 22:38:09 +0000
commit8cd2bb7f34bd12fc1a6571ebc88d361a24d5a150 (patch)
treefb56e530e15671df75ba81f6f8aa9e25a6d40e61 /apps/plugin.h
parent712931ca6e6fdb30dbb97c36a5887fc8749db52c (diff)
downloadrockbox-8cd2bb7f34bd12fc1a6571ebc88d361a24d5a150.tar.gz
rockbox-8cd2bb7f34bd12fc1a6571ebc88d361a24d5a150.zip
Threading functions aren't all available on HWCODEC, so don't try to build them on it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18560 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h6
1 files changed, 4 insertions, 2 deletions
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 */