Change the logging system to be per-context
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 18 Jun 2014 09:51:19 +0000 (19:51 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 23 Jun 2014 05:39:08 +0000 (15:39 +1000)
commit97a6bf10f95859940379787da2635b69399db40c
treea3f34a6c83b3fb917f893bf443e16dffdaec603c
parent6250397ac8a7a23fb41c726b9555d93ead0f1dc8
Change the logging system to be per-context

Rather than a single global logging function, make the logging dependent on
the individual context. This way we won't stomp on each other's feet in the
(admittedly unusual) case of having multiple libinput contexts.

The userdata argument to the log handler was dropped. The caller has a ref to
the libinput context now, any userdata can be attached to that context
instead.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
12 files changed:
src/evdev-mt-touchpad-buttons.c
src/evdev-mt-touchpad-tap.c
src/evdev.c
src/libinput-private.h
src/libinput.c
src/libinput.h
src/path.c
src/timer.c
src/udev-seat.c
test/litest.c
test/log.c
tools/event-debug.c