summaryrefslogtreecommitdiffstats
path: root/include/hw/usb.h
diff options
context:
space:
mode:
authorGonglei <arei.gonglei@huawei.com>2014-06-04 16:31:46 +0800
committerGerd Hoffmann <kraxel@redhat.com>2014-08-29 12:51:44 +0200
commite5a9bece9b5064d0cb0fda68ff68b9361085f400 (patch)
tree14423b0ee2bd398e62c88878e2ee7676ef7dd935 /include/hw/usb.h
parentf90e160b502fb5c464eb9417ac075a78f13e9801 (diff)
downloadhqemu-e5a9bece9b5064d0cb0fda68ff68b9361085f400.zip
hqemu-e5a9bece9b5064d0cb0fda68ff68b9361085f400.tar.gz
usb: add usb_bus_release function
add global variables releasing logic when the usb buses were removed or hot-unpluged. Signed-off-by: Gonglei <arei.gonglei@huawei.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/hw/usb.h')
-rw-r--r--include/hw/usb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/usb.h b/include/hw/usb.h
index 223a5ae..6b32a3b 100644
--- a/include/hw/usb.h
+++ b/include/hw/usb.h
@@ -529,6 +529,7 @@ struct USBBusOps {
void usb_bus_new(USBBus *bus, size_t bus_size,
USBBusOps *ops, DeviceState *host);
+void usb_bus_release(USBBus *bus);
USBBus *usb_bus_find(int busnr);
void usb_legacy_register(const char *typename, const char *usbdevice_name,
USBDevice *(*usbdevice_init)(USBBus *bus,
OpenPOWER on IntegriCloud