Re: [Libusbx-devel] [PATCH] Add HID capability detection for all backends

2013-03-21 Thread Pete Batard
On 2013.03.21 20:06, Ludovic Rousseau wrote: > Maybe LIBUSBX_IMPLEMENTS_DETACH_KERNEL_DRIVER Works for me. > It would also be cool if libusb_claim_interface() could report a > specific error in case detach is needed. > Something like LIBUSB_ERROR_NEED_DETACH_KERNEL_DRIVER. I think if we could do

Re: [Libusbx-devel] [PATCH] Add HID capability detection for all backends

2013-03-21 Thread Ludovic Rousseau
2013/3/21 Pete Batard : > Do you, or anyone, have a preference for how this new cap should be > called? I don't think LIBUSBX_HAS_DETACH will fly, as we could argue > that Windows also has _detach - it just returns an error when called. Maybe LIBUSBX_IMPLEMENTS_DETACH_KERNEL_DRIVER > Right now, I

Re: [Libusbx-devel] [PATCH] Add HID capability detection for all backends

2013-03-21 Thread Pete Batard
On 2013.03.21 08:19, Hans de Goede wrote: > lets have the HID cap flag set on Linux too. Thanks. I mean it. > But please, lets > clearly document that it requires detach on Linux. Sure. I'll work something out to try to make that clear, unless you already have an idea of what you would like to

Re: [Libusbx-devel] How top compile libusbx for windows using mingw32 under linux

2013-03-21 Thread Xiaofan Chen
On Sun, Mar 10, 2013 at 1:23 PM, Xiaofan Chen wrote: > I have issues builing libusbx under Ubuntu with or > without the "--disable-shared option", maybe the MinGW > cross-compiler is too old. I will try out MinGW-w64 cross > compiler later. > > ../configure --enable-maintainer-mode --build=i586-m

Re: [Libusbx-devel] [PATCH] Add HID capability detection for all backends

2013-03-21 Thread Xiaofan Chen
On Wed, Mar 20, 2013 at 5:37 PM, Hans de Goede wrote: > On 03/20/2013 02:16 AM, Xiaofan Chen wrote: >> >> On Wed, Mar 20, 2013 at 6:43 AM, Pete Batard wrote: >>> >>> Oh, and for what is worth, I think over at libusb we discussed the idea >>> of having a _detach() call that did nothing but returne

Re: [Libusbx-devel] [PATCH] Add HID capability detection for all backends

2013-03-21 Thread Xiaofan Chen
On Thu, Mar 21, 2013 at 4:19 PM, Hans de Goede wrote: > Hi, > > On 03/20/2013 10:21 PM, Pete Batard wrote: > > > > Ok I give in, lets have the HID cap flag set on Linux too. But please, lets > clearly document that it requires detach on Linux. > > As for having a detach cap flag, that sounds like

Re: [Libusbx-devel] [PATCH] Add HID capability detection for all backends

2013-03-21 Thread Hans de Goede
Hi, On 03/20/2013 10:21 PM, Pete Batard wrote: Ok I give in, lets have the HID cap flag set on Linux too. But please, lets clearly document that it requires detach on Linux. As for having a detach cap flag, that sounds like a good idea too, actually if we had only had that from day one code us