#include <stdbool.h>
#include "util.h"
Go to the source code of this file.
Event management.
- Date
- 1998 - 2017
- Author
- Richard Delorme
- Version
- 4.4
◆ Event
Event management data messages
◆ event_add_message()
void event_add_message |
( |
Event * |
event, |
|
|
char * |
message |
|
) |
| |
Add a new message at the bottom of the list.
- Parameters
-
event | Event. |
message | New message. |
◆ event_clear_messages()
void event_clear_messages |
( |
Event * |
event | ) |
|
Remove all unprocessed messages.
- Parameters
-
◆ event_exist()
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.
- Parameters
-
- Returns
- true if a message exists.
◆ event_free()
void event_free |
( |
Event * |
event | ) |
|
Free a message event.
- Parameters
-
◆ event_init()
void event_init |
( |
Event * |
event | ) |
|
Initialize a message event.
- Parameters
-
◆ event_peek_message()
char * event_peek_message |
( |
Event * |
event | ) |
|
Peek the first message from the list.
- Parameters
-
- Returns
- the message.
◆ event_wait()
void event_wait |
( |
Event * |
event, |
|
|
char ** |
cmd, |
|
|
char ** |
param |
|
) |
| |
Wait input.
- Parameters
-
event | Event. |
cmd | Command. |
param | Command's parameters. |
◆ event_wait_enter()
void event_wait_enter |
( |
Event * |
event | ) |
|