On 2012.07.13 16:46, Toby Gray wrote:
> Would keeping a list of the registered device handles
> (dev_info_data.DevInst) with each device and compare against that list
> be better? It then would at least avoid multiple string comparisons.

Currently, I'm thinking that what we probably want is avoid calling 
set_hid_interface() more than it should, so that's what I'm looking 
into. And the same could probably apply to set_composite_interface().

Unless we expect the device to have changed its device interface paths 
between two get_device_list() calls, which I don't see happening without 
the hash used to determine if it's an already instantiated device also 
changing, the call into set_hid_interface() is likely superfluous.

I've been sidetracked with other issues, but since we observe a crash on 
Windows, I'll be looking into it soon.

Regards,

/Pete


------------------------------------------------------------------------------
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

Reply via email to