summaryrefslogtreecommitdiff
path: root/libusb
diff options
context:
space:
mode:
authorPete Batard <pbatard@gmail.com>2010-04-15 23:52:08 +0100
committerPete Batard <pbatard@gmail.com>2010-04-15 23:52:08 +0100
commitf08aae4ddb9cfe3856e07f8997d9adbfa5330467 (patch)
tree122864dac0e0283f0f69bfa92ba94946522e8829 /libusb
parent4ebacb3868cb2bd704e6a1f219779fb7634be94a (diff)
downloadlibusb-f08aae4ddb9cfe3856e07f8997d9adbfa5330467.tar.gz
LIBUSB_SUCCESS on attach/detach for darwin & Windowsr253
Diffstat (limited to 'libusb')
-rw-r--r--libusb/os/darwin_usb.c4
-rw-r--r--libusb/os/windows_usb.c12
2 files changed, 9 insertions, 7 deletions
diff --git a/libusb/os/darwin_usb.c b/libusb/os/darwin_usb.c
index 8a6d8ee..eb35e30 100644
--- a/libusb/os/darwin_usb.c
+++ b/libusb/os/darwin_usb.c
@@ -1059,11 +1059,11 @@ static int darwin_kernel_driver_active(struct libusb_device_handle *dev_handle,
/* attaching/detaching kernel drivers is not currently supported (maybe in the future?) */
static int darwin_attach_kernel_driver (struct libusb_device_handle *dev_handle, int interface) {
- return LIBUSB_ERROR_NOT_SUPPORTED;
+ return LIBUSB_SUCCESS;
}
static int darwin_detach_kernel_driver (struct libusb_device_handle *dev_handle, int interface) {
- return LIBUSB_ERROR_NOT_SUPPORTED;
+ return LIBUSB_SUCCESS;
}
static void darwin_destroy_device(struct libusb_device *dev) {
diff --git a/libusb/os/windows_usb.c b/libusb/os/windows_usb.c
index 872bf59..251d162 100644
--- a/libusb/os/windows_usb.c
+++ b/libusb/os/windows_usb.c
@@ -1697,15 +1697,17 @@ static int windows_reset_device(struct libusb_device_handle *dev_handle)
// The 3 functions below are unlikely to ever get supported on Windows
static int windows_kernel_driver_active(struct libusb_device_handle *dev_handle, int iface)
{
- return LIBUSB_ERROR_NOT_SUPPORTED;
+ return LIBUSB_SUCCESS;
}
-static int windows_attach_kernel_driver(struct libusb_device_handle *dev_handle, int iface) {
- return LIBUSB_ERROR_NOT_SUPPORTED;
+static int windows_attach_kernel_driver(struct libusb_device_handle *dev_handle, int iface)
+{
+ return LIBUSB_SUCCESS;
}
-static int windows_detach_kernel_driver(struct libusb_device_handle *dev_handle, int iface) {
- return LIBUSB_ERROR_NOT_SUPPORTED;
+static int windows_detach_kernel_driver(struct libusb_device_handle *dev_handle, int iface)
+{
+ return LIBUSB_SUCCESS;
}
static void windows_destroy_device(struct libusb_device *dev)