Hi,
I stumbled upon libusbx when researching whether libusb would support
exposing the concept of a USB Location ID (which I am not sure is part of a
standard, but seems to be widely understood as available on Darwin/OS X and
Windows, and may be available or constructed on Linux). It seems that the
path is close to that concept.
It would be great if libusbx offered a uint32_t
get_usb_location_id(libusb_device *dev) function whose result would match
the location IDs used by the underlying OS (whether it's obtained directly,
as should be possible---I think remembering that the Darwin support relies
on location IDs to distinguish devices; or whether it's synthesized).
Because location ID is a concept supported across OSes (at least two here)
my preference would be to be able to get the OS value whenever available.
The reason I personally want this is that I am writing a Darwin application
that communicates with a daemon managing some USB devices through libusb.
The daemon right now uses its own dynamic numbering of devices, and so my
application cannot reliably map a detection of a device to an identifier
for that device for the daemon (and if one inserts devices nearly
simultaneously this becomes worse). If both the daemon and my app could
rely on location ID as a way to uniquely identify a device at that point,
we could communicate. I could make my app dependent on libusbx but there is
not really a reason and I need hot plug support which is not here yet I
think, and location ID is a useful concept to bridge identification between
libusbx apps and other apps? (I may be wrong on hotplug---a quick skim of
the mailing list archives mentions both "hot plug is in the future" and "we
notify listeners of devices plugging/unplugging.")
It seems to me that location ID is worth being part of the topology
information, and offers a reliable way to identify a device on both the
libusbx side of things and the native OS side too.
YA
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel