diff options
author | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-10-27 18:08:18 +0000 |
---|---|---|
committer | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-10-27 18:08:18 +0000 |
commit | 1839edf64ad0a4b6d96a5dd5ce24ab8075954dc6 (patch) | |
tree | 6b31c67e9168ae2c47eba9f3205f69bdd1328d42 /firmware/export/kernel.h | |
parent | 41add08c5edb9d3de7e223e860cef035b41a3b01 (diff) | |
download | rockbox-1839edf64ad0a4b6d96a5dd5ce24ab8075954dc6.tar.gz rockbox-1839edf64ad0a4b6d96a5dd5ce24ab8075954dc6.zip |
Add queue_peek to the kernel (written by Mike Sevakis), and use it to improve upon my previous commit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15336 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/kernel.h')
-rw-r--r-- | firmware/export/kernel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/export/kernel.h b/firmware/export/kernel.h index a72e004b33..041f846380 100644 --- a/firmware/export/kernel.h +++ b/firmware/export/kernel.h | |||
@@ -219,6 +219,7 @@ extern void queue_reply(struct event_queue *q, intptr_t retval); | |||
219 | extern bool queue_in_queue_send(struct event_queue *q); | 219 | extern bool queue_in_queue_send(struct event_queue *q); |
220 | #endif /* HAVE_EXTENDED_MESSAGING_AND_NAME */ | 220 | #endif /* HAVE_EXTENDED_MESSAGING_AND_NAME */ |
221 | extern bool queue_empty(const struct event_queue* q); | 221 | extern bool queue_empty(const struct event_queue* q); |
222 | extern bool queue_peek(struct event_queue *q, struct queue_event *ev); | ||
222 | extern void queue_clear(struct event_queue* q); | 223 | extern void queue_clear(struct event_queue* q); |
223 | extern void queue_remove_from_head(struct event_queue *q, long id); | 224 | extern void queue_remove_from_head(struct event_queue *q, long id); |
224 | extern int queue_count(const struct event_queue *q); | 225 | extern int queue_count(const struct event_queue *q); |