mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-05-01 15:07:59 +02:00
libei: implement a few missing functions
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
4f0637f726
commit
b5f1082419
1 changed files with 10 additions and 0 deletions
10
src/libei.c
10
src/libei.c
|
|
@ -467,6 +467,16 @@ ei_get_event(struct ei *ei)
|
|||
return ei_event_ref(e);
|
||||
}
|
||||
|
||||
_public_ enum ei_event_type
|
||||
ei_next_event_type(struct ei *ei)
|
||||
{
|
||||
if (list_empty(&ei->event_queue))
|
||||
return EI_EVENT_NONE;
|
||||
|
||||
struct ei_event *e = list_first_entry(&ei->event_queue, e, link);
|
||||
return e->type;
|
||||
}
|
||||
|
||||
static struct message *
|
||||
connection_parse_message(const char *data, size_t *len)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue