diff options
author | Martin Pieuchot <mpi@openbsd.org> | 2012-04-19 11:33:36 +0200 |
---|---|---|
committer | Pete Batard <pete@akeo.ie> | 2012-04-20 22:39:47 +0100 |
commit | 35c3189a70771dddb70ccf196c7bfd82d556f443 (patch) | |
tree | 2d4bb175f1399269bc7b64c857e3f64e0b70a5ad | |
parent | 29d66c1554e8db47fbe6079cba48a38984318049 (diff) | |
download | libusb-35c3189a70771dddb70ccf196c7bfd82d556f443.tar.gz |
BSD: Provide libusb_get_device_speed() data
Because the different speed values used by the libusb and OpenBSD's
usb_device_info structure are compatible, keep the code simple and
just copy the value returned by the USB_GET_DEVICEINFO ioctl() call.
-rw-r--r-- | libusb/os/openbsd_usb.c | 1 | ||||
-rw-r--r-- | libusb/version.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/libusb/os/openbsd_usb.c b/libusb/os/openbsd_usb.c index 9958cfe..9f909aa 100644 --- a/libusb/os/openbsd_usb.c +++ b/libusb/os/openbsd_usb.c @@ -165,6 +165,7 @@ obsd_get_device_list(struct libusb_context * ctx, dev->bus_number = di.udi_bus; dev->device_address = di.udi_addr; + dev->speed = di.udi_speed; dpriv = (struct device_priv *)dev->os_priv; strlcpy(dpriv->devnode, devnode, sizeof(devnode)); diff --git a/libusb/version.h b/libusb/version.h index 6a8b151..2ebe01f 100644 --- a/libusb/version.h +++ b/libusb/version.h @@ -9,7 +9,7 @@ #define LIBUSB_MICRO 10 #endif #ifndef LIBUSB_NANO -#define LIBUSB_NANO 10482 +#define LIBUSB_NANO 10483 #endif /* LIBUSB_RC is the release candidate suffix. Should normally be empty. */ #ifndef LIBUSB_RC |