aboutsummaryrefslogtreecommitdiff
path: root/tests/libqos/usb.h
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2014-09-26 09:28:14 +0000
committerAndreas Färber <afaerber@suse.de>2014-10-15 05:03:13 +0200
commitb3937683147481fba3406a01da4ce15f0b2deb21 (patch)
tree6b03dc1a4e4d72397e4f8757a813a5459beabecd /tests/libqos/usb.h
parentfbd942c993001f5276fcd1f25a56405fdd968472 (diff)
downloadqemu-b3937683147481fba3406a01da4ce15f0b2deb21.zip
qemu-b3937683147481fba3406a01da4ce15f0b2deb21.tar.gz
qemu-b3937683147481fba3406a01da4ce15f0b2deb21.tar.bz2
tests: usb: Generic usb device hotplug
use usb-tablet as a hotplugged usb device. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'tests/libqos/usb.h')
-rw-r--r--tests/libqos/usb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/libqos/usb.h b/tests/libqos/usb.h
index 7fcd669..8fe5687 100644
--- a/tests/libqos/usb.h
+++ b/tests/libqos/usb.h
@@ -11,4 +11,7 @@ struct qhc {
void qusb_pci_init_one(QPCIBus *pcibus, struct qhc *hc,
uint32_t devfn, int bar);
void uhci_port_test(struct qhc *hc, int port, uint16_t expect);
+
+void usb_test_hotplug(const char *bus_name, const int port,
+ void (*port_check)(void));
#endif