evdev: move device opening out from evdev_input_device_create
authorPekka Paalanen <ppaalanen@gmail.com>
Fri, 3 Aug 2012 11:38:58 +0000 (14:38 +0300)
committerJonas Ådahl <jadahl@gmail.com>
Sun, 10 Nov 2013 16:51:30 +0000 (17:51 +0100)
commit42a42240c95375ef17d713408c33b5472205531f
treec7dc536e7d125573fea153a276c658736ea84acb
parentcac530ebaebfc324a24a2d54fb013eb3885d3639
evdev: move device opening out from evdev_input_device_create

This makes the generic evdev code (i.e. the functions not relying on
udev) independent of launcher-util too. The aim is to allow re-using the
generic evdev code in the Android backend, where neither udev nor
launcher-util are available.

evdev_input_device_create() signature is changed:
- add the opened device file descriptor
- remove wl_display as unused

Also add a bit of failure logging.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
src/evdev.c