Go to the source code of this file.
Classes | |
struct | Event |
Typedefs | |
typedef struct Event | Event |
Functions | |
void | event_init (Event *) |
Initialize a message event. More... | |
void | event_free (Event *) |
Free a message event. More... | |
void | event_clear_messages (Event *) |
Remove all unprocessed messages. More... | |
void | event_add_message (Event *, char *) |
Add a new message at the bottom of the list. More... | |
char * | event_peek_message (Event *) |
Peek the first message from the list. More... | |
bool | event_exist (Event *) |
Check if there is a message. More... | |
void | event_wait (Event *, char **, char **) |
Wait input. More... | |
void | event_wait_enter (Event *) |
void event_add_message | ( | Event * | event, |
char * | message | ||
) |
Add a new message at the bottom of the list.
event | Event. |
message | New message. |
bool event_exist | ( | Event * | event | ) |
Check if there is a message.
This function is lockless, and should be used only when the event is locked.
event | Event; |
char* event_peek_message | ( | Event * | event | ) |
void event_wait | ( | Event * | event, |
char ** | cmd, | ||
char ** | param | ||
) |
Wait input.
event | Event. |
cmd | Command. |
param | Command's parameters. |
void event_wait_enter | ( | Event * | ) |