[libhid-discuss] Enumeration of HID devices

Charles Lepple clepple at ghz.cc
Mon Sep 10 23:34:26 UTC 2007


On Sep 10, 2007, at 7:17 PM, ankita prasad wrote:

> I have 4 HID devices which have the same Vendor ID and Product ID  
> connected
> to my linux box . There is no serial number on them, hence i cannot
> differentiate between them.. Is there a function in libhid which  
> would give
> me an array of handles of all the the HID devices with the same  
> Vendor and
> Product ID?

I believe the hid_open function should return an error after a device  
has already been opened, so just open all four in a loop.

-- 
Charles Lepple






More information about the libhid-discuss mailing list