diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2010-12-03 17:59:36 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2011-01-11 17:15:24 +0100 |
commit | b6f77fbe230ad3e9ec5c9115a1535137d5e5d04b (patch) | |
tree | 23c3ba5a454b73e3e4254b6c8004911beb55049d /hw/usb.h | |
parent | 843d4e0c633824a11c4067d0e84bd683520b5d39 (diff) |
usb: add attach callback
Add handle_attach() callback to USBDeviceInfo which is called by the
generic package handler when the device is attached to the usb bus
(i.e. plugged into a port).
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb.h')
-rw-r--r-- | hw/usb.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -194,6 +194,11 @@ struct USBDeviceInfo { void (*handle_destroy)(USBDevice *dev); /* + * Attach the device + */ + void (*handle_attach)(USBDevice *dev); + + /* * Reset the device */ void (*handle_reset)(USBDevice *dev); |