diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2008-09-23 09:59:06 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2008-09-23 09:59:06 +0000 |
| commit | 468edbbc7c1ea4b5de0036a732fac4ef0bee23ba (patch) | |
| tree | bd7e9cb1206dd5ff207e6e228d969fbd976c9317 /apps | |
| parent | 2041fed03aad460e73dcab5510ee83d1ba3775cd (diff) | |
| download | rockbox-468edbbc7c1ea4b5de0036a732fac4ef0bee23ba.zip rockbox-468edbbc7c1ea4b5de0036a732fac4ef0bee23ba.tar.gz rockbox-468edbbc7c1ea4b5de0036a732fac4ef0bee23ba.tar.bz2 rockbox-468edbbc7c1ea4b5de0036a732fac4ef0bee23ba.tar.xz | |
Use the correct #ifdefs for the added kernel objects.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18575 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 6ef8623..4ba1396 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -609,10 +609,12 @@ static const struct plugin_api rockbox_api = { thread_thaw, -#if (CONFIG_CODEC == SWCODEC) +#ifdef HAVE_SEMAPHORE_OBJECTS semaphore_init, semaphore_wait, semaphore_release, +#endif +#ifdef HAVE_EVENT_OBJECTS event_init, event_wait, event_set_state, diff --git a/apps/plugin.h b/apps/plugin.h index 409108d..20724f8 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -764,11 +764,13 @@ struct plugin_api { #endif void (*thread_thaw)(struct thread_entry *thread); - -#if (CONFIG_CODEC == SWCODEC) + +#ifdef HAVE_SEMAPHORE_OBJECTS void (*semaphore_init)(struct semaphore *s, int max, int start); void (*semaphore_wait)(struct semaphore *s); void (*semaphore_release)(struct semaphore *s); +#endif +#ifdef HAVE_EVENT_OBJECTS 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); |