libevdev/libevdev
Peter Hutterer b15e5987b3 Reset the struct on set_fd
libevdev_set_fd may fail at a number of points. If it does, it errors out but does nothing
otherwise. Thus, a client may call set_fd again for the same struct but on a different fd and have
it succeed. Depending on when set_fd bailed out the first time, some fields may already be set.

Thus, reset the whole struct at set_fd time to make sure we're nulled out appropriately.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
2013-10-23 09:04:41 +10:00
..
libevdev-int.h Allow -1 as valid fd in libevdev_change_fd 2013-10-14 14:20:55 +10:00
libevdev-uinput-int.h Add support for uinput device creation 2013-08-29 13:54:46 +10:00
libevdev-uinput.c Make uinput-code backwards-compatible to missing UI_SET_PROPBIT ioctl 2013-10-23 09:04:41 +10:00
libevdev-uinput.h Add extern C guards to libevdev-uinput.h 2013-09-19 08:32:00 +10:00
libevdev-util.h Revamp the API once again 2013-09-10 11:25:09 +10:00
libevdev.c Reset the struct on set_fd 2013-10-23 09:04:41 +10:00
libevdev.h Document backwards-compatibility behaviour 2013-10-23 09:04:41 +10:00
make-event-names.py Pass linux/input.h as argument to make-event-names.py 2013-10-23 09:04:41 +10:00
Makefile.am Pass linux/input.h as argument to make-event-names.py 2013-10-23 09:04:41 +10:00