Use the correct #ifdefs for the added kernel objects.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18575 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2008-09-23 09:59:06 +00:00
parent 2041fed03a
commit 468edbbc7c
2 changed files with 7 additions and 3 deletions

View file

@ -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,

View file

@ -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);