mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Guard the Timeout API declarations with the correct #ifdef
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21869 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
04ab67d431
commit
75b27eaacc
1 changed files with 2 additions and 0 deletions
|
@ -221,6 +221,7 @@ int tick_add_task(void (*f)(void));
|
|||
int tick_remove_task(void (*f)(void));
|
||||
extern void tick_start(unsigned int interval_in_ms);
|
||||
|
||||
#ifdef INCLUDE_TIMEOUT_API
|
||||
struct timeout;
|
||||
|
||||
/* timeout callback type
|
||||
|
@ -240,6 +241,7 @@ struct timeout
|
|||
void timeout_register(struct timeout *tmo, timeout_cb_type callback,
|
||||
int ticks, intptr_t data);
|
||||
void timeout_cancel(struct timeout *tmo);
|
||||
#endif /* INCLUDE_TIMEOUT_API */
|
||||
|
||||
#define STATE_NONSIGNALED 0
|
||||
#define STATE_SIGNALED 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue