diff options
Diffstat (limited to 'hw/usb/dev-unifying.c')
-rw-r--r-- | hw/usb/dev-unifying.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/hw/usb/dev-unifying.c b/hw/usb/dev-unifying.c index 9e3a487e68..2be1714902 100644 --- a/hw/usb/dev-unifying.c +++ b/hw/usb/dev-unifying.c @@ -645,9 +645,38 @@ static int usb_ltunify_initfn(USBDevice *dev) return 0; } +#if 0 +static int usb_ltunify_post_load(void *opaque, int version_id) +{ + USBLtunifyState *s = opaque; + + if (s->dev.remote_wakeup) { + hid_pointer_activate(&s->hid[IFACE_MSE]); + } + + // TODO: capture file restart? + + return 0; +} +#endif + static const VMStateDescription vmstate_usb_ltunify = { .name = "usb-ltunify", .unmigratable = 1, + /* TODO: find out what fields to migrate. Also, what about the dump + * functionality? */ +#if 0 + .version_id = 1, + .minimum_version_id = 1, + .post_load = usb_ltunify_post_load, + .fields = (VMStateField []) { + VMSTATE_USB_DEVICE(dev, USBLtunifyState), + VMSTATE_HID_KEYBOARD_DEVICE(hid[IFACE_KBD], USBLtunifyState), + VMSTATE_HID_POINTER_DEVICE(hid[IFACE_MSE], USBLtunifyState), + //VMSTATE_STRUCT(input_queue, USBLtunifyState, 1, + VMSTATE_END_OF_LIST() + } +#endif }; static Property usb_ltunify_properties[] = { |