diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-06-29 21:19:55 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-06-29 21:19:55 +0000 |
commit | 2a73cec69bf7b372377f79ef561985816148b1af (patch) | |
tree | f53e50110ff9069c8c2ac4018e2fa4e1444c2c8e /firmware/kernel.h | |
parent | eb102e1a239d75f4eaf34398c0dbb29c0bc50c84 (diff) |
Added queue_broadcast()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1253 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/kernel.h')
-rw-r--r-- | firmware/kernel.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/kernel.h b/firmware/kernel.h index ee9ded7ab0..ef287e5689 100644 --- a/firmware/kernel.h +++ b/firmware/kernel.h @@ -32,6 +32,12 @@ #define QUEUE_LENGTH 16 /* MUST be a power of 2 */ #define QUEUE_LENGTH_MASK (QUEUE_LENGTH - 1) +/* System defined message ID's */ +#define SYS_USB_CONNECTED -1 +#define SYS_USB_CONNECTED_ACK -2 +#define SYS_USB_DISCONNECTED -3 +#define SYS_USB_DISCONNECTED_ACK -4 + struct event { int id; @@ -65,6 +71,7 @@ extern void queue_init(struct event_queue *q); extern void queue_wait(struct event_queue *q, struct event *ev); extern void queue_post(struct event_queue *q, int id, void *data); extern bool queue_empty(struct event_queue* q); +extern int queue_broadcast(int id, void *data); extern void mutex_init(struct mutex *m); extern void mutex_lock(struct mutex *m); |