1
0
Fork 0
forked from len0rd/rockbox

Oops, fixed the errors.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11031 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Miika Pekkarinen 2006-09-23 11:02:09 +00:00
parent 6ee82e702c
commit 45ab2a9126

View file

@ -2853,6 +2853,28 @@ static bool delete_entry(long idx_id)
return true;
}
/**
* Returns true if there is an event waiting in the queue
* that requires the current operation to be aborted.
*/
static bool check_event_queue(void)
{
struct event ev;
queue_wait_w_tmo(&tagcache_queue, &ev, 0);
switch (ev.id)
{
case Q_STOP_SCAN:
case SYS_POWEROFF:
case SYS_USB_CONNECTED:
/* Put the event back into the queue. */
queue_post(&tagcache_queue, ev.id, ev.data);
return true;
}
return false;
}
#ifdef HAVE_TC_RAMCACHE
static bool allocate_tagcache(void)
{
@ -2962,28 +2984,6 @@ static bool tagcache_dumpsave(void)
}
# endif
/**
* Returns true if there is an event waiting in the queue
* that requires the current operation to be aborted.
*/
static bool check_event_queue(void)
{
struct event ev;
queue_wait_w_tmo(&tagcache_queue, &ev, 0);
switch (ev.id)
{
case Q_STOP_SCAN:
case SYS_POWEROFF:
case SYS_USB_CONNECTED:
/* Put the event back into the queue. */
queue_post(&tagcache_queue, ev.id, ev.data);
return true;
}
return false;
}
static bool load_tagcache(void)
{
struct tagcache_header *tch;