diff options
| author | Michael Giacomelli <giac2000@hotmail.com> | 2008-09-20 22:38:09 +0000 |
|---|---|---|
| committer | Michael Giacomelli <giac2000@hotmail.com> | 2008-09-20 22:38:09 +0000 |
| commit | 8cd2bb7f34bd12fc1a6571ebc88d361a24d5a150 (patch) | |
| tree | fb56e530e15671df75ba81f6f8aa9e25a6d40e61 /apps | |
| parent | 712931ca6e6fdb30dbb97c36a5887fc8749db52c (diff) | |
| download | rockbox-8cd2bb7f34bd12fc1a6571ebc88d361a24d5a150.zip rockbox-8cd2bb7f34bd12fc1a6571ebc88d361a24d5a150.tar.gz rockbox-8cd2bb7f34bd12fc1a6571ebc88d361a24d5a150.tar.bz2 rockbox-8cd2bb7f34bd12fc1a6571ebc88d361a24d5a150.tar.xz | |
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')
| -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 b03ed31..aa24b32 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 6dd81ca..c6d2583 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 */ |