Revision 3a3286bf hw/usb-hid.c
b/hw/usb-hid.c | ||
---|---|---|
527 | 527 |
return usb_hid_initfn(dev, HID_KEYBOARD); |
528 | 528 |
} |
529 | 529 |
|
530 |
static int usb_ptr_post_load(void *opaque, int version_id) |
|
531 |
{ |
|
532 |
USBHIDState *s = opaque; |
|
533 |
|
|
534 |
if (s->dev.remote_wakeup) { |
|
535 |
hid_pointer_activate(&s->hid); |
|
536 |
} |
|
537 |
return 0; |
|
538 |
} |
|
539 |
|
|
530 | 540 |
static const VMStateDescription vmstate_usb_ptr = { |
531 | 541 |
.name = "usb-ptr", |
532 | 542 |
.version_id = 1, |
533 | 543 |
.minimum_version_id = 1, |
544 |
.post_load = usb_ptr_post_load, |
|
534 | 545 |
.fields = (VMStateField []) { |
535 | 546 |
VMSTATE_USB_DEVICE(dev, USBHIDState), |
536 | 547 |
VMSTATE_HID_POINTER_DEVICE(hid, USBHIDState), |
Also available in: Unified diff