On Fri, 24 May 2013 11:22:13 -0600, Nathan Hjelm said:

>> Is this hotplug API opt-in?  libusbx won't start observing the comings
>and goings of all USB devices by default I hope?
>
>The hotplug API is opt-in but the internal event handlers are not. Here
>is a short summary of the changes within libusbx:
> - Devices are enumerated 1) when a context is created (by
>libusb_init()) or 2) when connected. Devices are no longer enumerated
>when you call libusb_get_device_list().

So once my process calls libusb_init(), libusbx code will run whenever any kind 
of USB device is plugged in?

My app only communicates with one particular USB device, and I don't much like 
the idea of my process running code whenever the user happens to plug in a 
keyboard, mouse, USB key, or other unrelated thing.

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada



------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to