udev: split libinput_udev context init into two functions
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 12 Jun 2014 01:44:31 +0000 (11:44 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 23 Jun 2014 05:39:08 +0000 (15:39 +1000)
commit6250397ac8a7a23fb41c726b9555d93ead0f1dc8
treebe028c08adbcd424b3a9fad8d8bea5b072ba4522
parent3f500b657f5e9f90ade90a6f2678d8596cd6b799
udev: split libinput_udev context init into two functions

This is preparation work for context-specific log handlers.

Callers are now encouraged to first initialize the context with
libinput_udev_create_context() and then set the seat for this context with
libinput_udev_assign_seat().

In the upcoming patch to support context-specific log handlers this enables a
caller to set the log handler for a context before any devices are
initialized. Otherwise, a log message generated by a new device may pass a
libinput context that the caller is not yet aware of.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
doc/libinput.doxygen.in
src/libinput.h
src/udev-seat.c
test/udev.c
tools/event-debug.c
tools/event-gui.c