Provide accessors to retrieve the right event type
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 19 Dec 2013 23:22:32 +0000 (09:22 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 22 Jan 2014 01:15:54 +0000 (11:15 +1000)
commite99d36278789a9f8e7bcc1ce47fa11ed77011b2c
tree18c6dcb073ad42be76ea92858cf5af3a6f8d210d
parentaac781511f64858edfa300521d33631df2ee7296
Provide accessors to retrieve the right event type

Slightly enhances the type-safety. A caller may now do something along the
lines of

struct libinput_event_pointer *ptrev;
ptrev = libinput_event_get_pointer_event(event);

if (!ptrev)
   oops, that wasn't a pointer event

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/libinput.c
src/libinput.h