From 35c3189a70771dddb70ccf196c7bfd82d556f443 Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Thu, 19 Apr 2012 11:33:36 +0200 Subject: [PATCH] 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. --- libusb/os/openbsd_usb.c | 1 + libusb/version.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 2.7.4