device filtering support

Xiaofan Chen xiaofanc at gmail.com
Fri Feb 3 20:09:59 EST 2012


On Fri, Feb 3, 2012 at 10:07 PM, Hans de Goede <hdegoede at redhat.com> wrote:
>> I believe most of the use cases of libusb only cares about one or a few
>> particular device, with known VID/PIDs. Therefore I do not see the need
>> of enumerating all device.
>
> As the author of a piece of software which wants does care about any
> random / all usb devices I respectfully disagree with this assumption.
>

The thing is that this may well work under Linux but certainly
not Windows. You still need to install drivers for your random
or all USB devices to talk to them and that is not feasible,

>> Just another example, for hot plug event, do most users only
>> want to listen to the hot-plug event of interested device? Or do
>> they want to listen to all the hot-plug event of all USB device?
>
> I would very much would like to be notified about any USB device
> getting plugged in or unplugged.

Okay, let's wait and see if this will create overhead again just
like the current enumeration process.


-- 
Xiaofan



More information about the libusbx mailing list