Re: [Libusbx-devel] Gracefully detecting device presence

2012-09-24 Thread Peter Stuge
Hi Bob, Bob Lapique wrote: > On Linux, it is pretty straightforward to detect device connection / > disconnection with libusb_set_pollfd_notifiers(). This is unfortunately not very portable use of the libusb-1.0 API, in particular it's not portable to Windows, because Windows doesn't use file de

Re: [Libusbx-devel] Gracefully detecting device presence

2012-09-19 Thread Pete Batard
On 2012.09.19 09:44, Bob Lapique wrote: > Hello, > > I am using the asynchronous mode. > > On Linux, it is pretty straightforward to detect device connection / > disconnection with libusb_set_pollfd_notifiers(). > > I can do it in Windows too, by checking libusb_submit_transfer() return > code and

[Libusbx-devel] Gracefully detecting device presence

2012-09-19 Thread Bob Lapique
Hello, I am using the asynchronous mode. On Linux, it is pretty straightforward to detect device connection / disconnection with libusb_set_pollfd_notifiers(). I can do it in Windows too, by checking libusb_submit_transfer() return code and libusb_transfer::status in callback functions install