[PATCH libinput 2/9] path: split out creating a device into a helper function

2014-11-23 Thread Peter Hutterer
No functional changes Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/path.c | 57 - 1 file changed, 32 insertions(+), 25 deletions(-) diff --git a/src/path.c b/src/path.c index f986afd..5900775 100644 --- a/src/path.c +++

[PATCH libinput 9/9] test: add seat changing tests

2014-11-23 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- test/path.c | 71 ++- test/udev.c | 78 - 2 files changed, 147 insertions(+), 2 deletions(-) diff --git a/test/path.c

[PATCH libinput 7/9] path: optionally pass the seat name into path_device_enable()

2014-11-23 Thread Peter Hutterer
Prep work for changing seat names on devices. No functional changes. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/path.c | 30 ++ 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/src/path.c b/src/path.c index 9d0632a..fef1d46 100644 ---

[PATCH libinput 0/9] Changing logical seat names

2014-11-23 Thread Peter Hutterer
libinput devices are assigned to a struct libinput_seat that is immutable. The seat consists of physical seat (e.g. seat0, i.e. ID_SEAT) and a logical seat (default, WL_SEAT if available). The physical seat is used as filter whether a device is added at all, the logical seat effectively

[PATCH libinput 4/9] evdev: use a udev_device instead of separate sysname/syspath/devnode

2014-11-23 Thread Peter Hutterer
Using a udev_device instead of the various bits separately safes us re-initializing udev contexts whenever we need to compare the device. And having the actual udev device makes it a bit easier to ensure that we're not re-initializing a different device as a current one. Signed-off-by: Peter

[PATCH libinput 3/9] path: store the udev device instead of just the devnode

2014-11-23 Thread Peter Hutterer
Long-term plan to use more of udev_device here is to better protect us against re-opening a different device that happens to have the same devnode. This now also prints an error message for invalid devices, the log tests are adjusted. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net ---