From 8cd2bb7f34bd12fc1a6571ebc88d361a24d5a150 Mon Sep 17 00:00:00 2001 From: Michael Giacomelli Date: Sat, 20 Sep 2008 22:38:09 +0000 Subject: 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 --- apps/plugin.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'apps/plugin.h') 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 */ -- cgit v1.2.3