evdev: Add an internal device suspend / resume notification system
authorHans de Goede <hdegoede@redhat.com>
Tue, 16 Sep 2014 14:22:37 +0000 (16:22 +0200)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 18 Sep 2014 03:29:42 +0000 (13:29 +1000)
commit3bf9b02d81403c4ae373fa230b6049ed23ec1734
tree559fcefba2a210b605e4f30ba8c190e29f4899f5
parent7e932ed33ffe707fb1c3d4bf8543be6c53549f11
evdev: Add an internal device suspend / resume notification system

We have the ability for a device to form a link to another device through the
device_added / device_removed callbacks. A device having such a link to
another device may also want to know when that other device is disabled /
enabled (suspended / resumed). So add a notification mechanism for this too.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev-mt-touchpad.c
src/evdev.c
src/evdev.h