evdev: hook up a generic enable/disable interface for devices
[platform/upstream/libinput.git] / src / evdev.h
index ef02491..2af6828 100644 (file)
@@ -124,6 +124,11 @@ struct evdev_dispatch_interface {
 struct evdev_dispatch {
        struct evdev_dispatch_interface *interface;
        struct libinput_device_config_calibration calibration;
+
+       struct {
+               struct libinput_device_config_send_events config;
+               enum libinput_config_send_events_mode current_mode;
+       } sendevents;
 };
 
 struct evdev_device *
@@ -189,6 +194,9 @@ evdev_device_transform_y(struct evdev_device *device,
 int
 evdev_device_suspend(struct evdev_device *device);
 
+int
+evdev_device_resume(struct evdev_device *device);
+
 void
 evdev_keyboard_notify_key(struct evdev_device *device,
                          uint32_t time,