diff options
| author | Miika Pekkarinen <miipekk@ihme.org> | 2006-09-23 11:02:09 +0000 |
|---|---|---|
| committer | Miika Pekkarinen <miipekk@ihme.org> | 2006-09-23 11:02:09 +0000 |
| commit | 45ab2a91265845236dc3894c04c91b2b27c56c27 (patch) | |
| tree | a70daead3e9477b44cc2535ba04b2b7ba8889d86 /apps/tagcache.c | |
| parent | 6ee82e702c45308c2123656af6a6f0398962bd47 (diff) | |
| download | rockbox-45ab2a91265845236dc3894c04c91b2b27c56c27.zip rockbox-45ab2a91265845236dc3894c04c91b2b27c56c27.tar.gz rockbox-45ab2a91265845236dc3894c04c91b2b27c56c27.tar.bz2 rockbox-45ab2a91265845236dc3894c04c91b2b27c56c27.tar.xz | |
Oops, fixed the errors.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11031 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagcache.c')
| -rw-r--r-- | apps/tagcache.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c index 7da8557..5566b17 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c @@ -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; |