Drop per-device logging function, use per-library one instead
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 26 Aug 2013 03:24:26 +0000 (13:24 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 3 Sep 2013 06:58:54 +0000 (16:58 +1000)
commit55d67a340b058da84b7a5f135192fe126e5cbe0d
tree1a80b57ac06f491eb00a6fcdd662201385f05f4f
parent37d37cdaea9c010c5f7f0ab878617c8239d14d15
Drop per-device logging function, use per-library one instead

There's no need to have separate logging function for each device created.
More likely, libevdev will be hooked up once into the logging system and
expected to deal with it.

Plus, this allows us to log from the uinput code where we don't
have the context anyway.

Requires a rename to libevdev_set_log_function to avoid ABI breaks, and
while we're breaking the ABI make the logging function more sophisticated
to log line, number, etc.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
libevdev/libevdev-int.h
libevdev/libevdev.c
libevdev/libevdev.h
test/test-libevdev-init.c