forked from len0rd/rockbox
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
This commit is contained in:
parent
712931ca6e
commit
8cd2bb7f34
2 changed files with 7 additions and 3 deletions
|
|
@ -607,13 +607,15 @@ static const struct plugin_api rockbox_api = {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
thread_thaw,
|
thread_thaw,
|
||||||
|
|
||||||
|
#if (CONFIG_CODEC == SWCODEC)
|
||||||
semaphore_init,
|
semaphore_init,
|
||||||
semaphore_wait,
|
semaphore_wait,
|
||||||
semaphore_release,
|
semaphore_release,
|
||||||
event_init,
|
event_init,
|
||||||
event_wait,
|
event_wait,
|
||||||
event_set_state,
|
event_set_state,
|
||||||
|
#endif
|
||||||
/* new stuff at the end, sort into place next time
|
/* new stuff at the end, sort into place next time
|
||||||
the API gets incompatible */
|
the API gets incompatible */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -763,14 +763,16 @@ struct plugin_api {
|
||||||
char *buf, int buflen);
|
char *buf, int buflen);
|
||||||
#endif
|
#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_init)(struct semaphore *s, int max, int start);
|
||||||
void (*semaphore_wait)(struct semaphore *s);
|
void (*semaphore_wait)(struct semaphore *s);
|
||||||
void (*semaphore_release)(struct semaphore *s);
|
void (*semaphore_release)(struct semaphore *s);
|
||||||
void (*event_init)(struct event *e, unsigned int flags);
|
void (*event_init)(struct event *e, unsigned int flags);
|
||||||
void (*event_wait)(struct event *e, unsigned int for_state);
|
void (*event_wait)(struct event *e, unsigned int for_state);
|
||||||
void (*event_set_state)(struct event *e, unsigned int state);
|
void (*event_set_state)(struct event *e, unsigned int state);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* new stuff at the end, sort into place next time
|
/* new stuff at the end, sort into place next time
|
||||||
the API gets incompatible */
|
the API gets incompatible */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue