summaryrefslogtreecommitdiffstats
path: root/include/usbhost
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2010-12-13 10:15:25 -0800
committerMike Lockwood <lockwood@android.com>2010-12-13 19:08:27 -0800
commit50372073d2919480fb32d56cb3b91663b9fca0f1 (patch)
tree73546c42f478fd00bf0986a3cc4a30f12061e780 /include/usbhost
parentcd185f23cc6f062b252d1d19bca55e721290ee62 (diff)
downloadcore-50372073d2919480fb32d56cb3b91663b9fca0f1.tar.gz
core-50372073d2919480fb32d56cb3b91663b9fca0f1.tar.bz2
core-50372073d2919480fb32d56cb3b91663b9fca0f1.zip
libusbhost: Add accessor for the USB device descriptor
Change-Id: Ic3a54e2a06f3b4fa72f99b64025a911fbf525daf Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'include/usbhost')
-rw-r--r--include/usbhost/usbhost.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/usbhost/usbhost.h b/include/usbhost/usbhost.h
index 57d9c37e9..ccc12b1c4 100644
--- a/include/usbhost/usbhost.h
+++ b/include/usbhost/usbhost.h
@@ -109,6 +109,8 @@ uint16_t usb_device_get_vendor_id(struct usb_device *device);
/* Returns the USB product ID from the device descriptor for the USB device */
uint16_t usb_device_get_product_id(struct usb_device *device);
+const struct usb_device_descriptor* usb_device_get_device_descriptor(struct usb_device *device);
+
/* Sends a control message to the specified device on endpoint zero */
int usb_device_send_control(struct usb_device *device,
int requestType,