diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2009-10-02 19:03:47 +0000 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2009-10-02 19:03:47 +0000 |
commit | 2e0406a49365f6a1b92802d95a1ceb6db23b15a0 (patch) | |
tree | da755795a513d298777e34a6f7221c2f6c7ffc5c | |
parent | 8bef69bdb8949c913e4a13ab7290b97f9ffbb964 (diff) | |
download | libgphoto2-2e0406a49365f6a1b92802d95a1ceb6db23b15a0.tar.gz |
also hide 0xe0 clas devices
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12477 67ed7778-7388-44ab-90cf-0a291f65f57c
-rw-r--r-- | libgphoto2_port/usb/libusb.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libgphoto2_port/usb/libusb.c b/libgphoto2_port/usb/libusb.c index 413cdd319..a79208d2e 100644 --- a/libgphoto2_port/usb/libusb.c +++ b/libgphoto2_port/usb/libusb.c @@ -111,7 +111,8 @@ gp_port_library_list (GPPortInfoList *list) if ( (dev->descriptor.bDeviceClass == USB_CLASS_HUB) || (dev->descriptor.bDeviceClass == USB_CLASS_HID) || (dev->descriptor.bDeviceClass == USB_CLASS_PRINTER) || - (dev->descriptor.bDeviceClass == USB_CLASS_COMM) + (dev->descriptor.bDeviceClass == USB_CLASS_COMM) || + (dev->descriptor.bDeviceClass == 0xe0) /* wireless / bluetooth */ ) continue; /* excepts HUBs, usually the interfaces have the classes, not @@ -127,7 +128,9 @@ gp_port_library_list (GPPortInfoList *list) struct usb_interface_descriptor *intf = &dev->config[i].interface[i1].altsetting[i2]; if ( (intf->bInterfaceClass == USB_CLASS_HID) || (intf->bInterfaceClass == USB_CLASS_PRINTER) || - (intf->bInterfaceClass == USB_CLASS_COMM)) + (intf->bInterfaceClass == USB_CLASS_COMM) || + (intf->bInterfaceClass == 0xe0) /* wireless/bluetooth*/ + ) continue; unknownint++; } |