usb: add attach callback
commitb6f77fbe230ad3e9ec5c9115a1535137d5e5d04b
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 3 Dec 2010 16:59:36 +0000 (3 17:59 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 11 Jan 2011 16:15:24 +0000 (11 17:15 +0100)
tree23c3ba5a454b73e3e4254b6c8004911beb55049d
parent843d4e0c633824a11c4067d0e84bd683520b5d39
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>
hw/usb.c
hw/usb.h