struct libinput_device *device;
};
-struct libinput_event_added_device {
- struct libinput_event base;
- struct libinput_device *device;
-};
-
-struct libinput_event_removed_device {
+struct libinput_event_device_notify {
struct libinput_event base;
struct libinput_device *device;
};
void
notify_added_device(struct libinput_device *device)
{
- struct libinput_event_added_device *added_device_event;
+ struct libinput_event_device_notify *added_device_event;
added_device_event = malloc(sizeof *added_device_event);
if (!added_device_event)
return;
- *added_device_event = (struct libinput_event_added_device) {
+ *added_device_event = (struct libinput_event_device_notify) {
.device = device,
};
void
notify_removed_device(struct libinput_device *device)
{
- struct libinput_event_removed_device *removed_device_event;
+ struct libinput_event_device_notify *removed_device_event;
removed_device_event = malloc(sizeof *removed_device_event);
if (!removed_device_event)
return;
- *removed_device_event = (struct libinput_event_removed_device) {
+ *removed_device_event = (struct libinput_event_device_notify) {
.device = device,
};
struct libinput_seat;
struct libinput_event;
-struct libinput_event_added_device;
-struct libinput_event_removed_device;
+struct libinput_event_device_notify;
struct libinput_event_keyboard_key;
struct libinput_event_pointer_motion;
struct libinput_event_pointer_motion_absolute;