summaryrefslogtreecommitdiffstats
path: root/usb.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2017-02-13 13:43:18 +0100
committerGerd Hoffmann <kraxel@redhat.com>2017-02-13 13:43:18 +0100
commit48b9694bce4e53dc6ceadb51423def5a546efef9 (patch)
tree98f359c86b1992b4199720cd8997e88f7e1e08dd /usb.h
parenteb0978fffe5d17f085a441faf68cedc24eea04e1 (diff)
downloadqemu-security-48b9694bce4e53dc6ceadb51423def5a546efef9.tar.gz
add cve-2017-5898.c
Diffstat (limited to 'usb.h')
-rw-r--r--usb.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/usb.h b/usb.h
new file mode 100644
index 0000000..f1bc42d
--- /dev/null
+++ b/usb.h
@@ -0,0 +1,8 @@
+#include <libusb.h>
+
+extern libusb_device *dev;
+extern libusb_device_handle *hdev;
+
+void find_device(char *name,
+ unsigned int vendor,
+ unsigned int device);