Re: [Libusbx-devel] Accessing composite devices using interface association

2013-08-14 Thread Xiaofan Chen
On Thu, Aug 15, 2013 at 12:45 AM, Tim Roberts wrote: > Pete Batard wrote: >> On 2013.08.14 00:21, Xiaofan Chen wrote: >>> The 2nd option is not possible without changes in libusbx. Right now >>> it is not possible to access the other interfaces other than the first >>> interface in an interface co

Re: [Libusbx-devel] [libusbx] Make libusbx accept an optional policy structure that specifies how logging and/or memory allocation work. (#128)

2013-08-14 Thread Ludovic Rousseau
The pull request still contains 56 commits. So something is not working as expected. Please create a new pull request and close this one. --- Reply to this email directly or view it on GitHub: https://github.com/libusbx/libusbx/pull/128#issuecomment-22654142 -

Re: [Libusbx-devel] [libusbx] Linux: libusbx version 1.0.16.10809 compiled with --disable-udev sometimes blocks on libusb_get_device_list() call till a device is plugged/unplugged. (#130)

2013-08-14 Thread Nathan Hjelm
Closed #130 via f0fb99aeb93f45d2846f8884a348e90438d13ef8. --- Reply to this email directly or view it on GitHub: https://github.com/libusbx/libusbx/issues/130 -- Get 100% visibility into Java/.NET code with AppDynamics Lit

Re: [Libusbx-devel] libusb windows 7 unnattended instalation

2013-08-14 Thread Tim Roberts
luis morales wrote: > I need to know if it is possible this points: > 1-To execute an unattended installation of libusb in a windows 7 OS (32 > bits) > 2-I need that the driver be signed. > ... > Please could anyone tell me how can I do a silent and an unattended > installation of libusb for window

Re: [Libusbx-devel] Accessing composite devices using interface association

2013-08-14 Thread Tim Roberts
Pete Batard wrote: > On 2013.08.14 00:21, Xiaofan Chen wrote: >> The 2nd option is not possible without changes in libusbx. Right now >> it is not possible to access the other interfaces other than the first >> interface in an interface collection of a USB IAD device as of >> now, even though the s

Re: [Libusbx-devel] [libusbx] Make libusbx accept an optional policy structure that specifies how logging and/or memory allocation work. (#128)

2013-08-14 Thread swestrup
I've already pushed the rebased branch to update this pull request. --- Reply to this email directly or view it on GitHub: https://github.com/libusbx/libusbx/pull/128#issuecomment-22640517 -- Get 100% visibility into Java/

Re: [Libusbx-devel] [libusb-compat PATCH] Link with -znodelete to disallow unloading

2013-08-14 Thread Daniel P. Berrange
On Wed, Aug 14, 2013 at 04:05:48PM +0200, Hans de Goede wrote: > From: Daniel Berrange > > Since libusb-0.1 did not have any init / exit function, code using the > libusb-0.1 API will not call libusb_exit. > > Now, libgphoto uses libusb and will dlopen() and dlclose() it. Unfortunately > since t

Re: [Libusbx-devel] [libusbx] lsusb order got changed (#131)

2013-08-14 Thread Peter Wu
libusbx probably won't fix this, I just reported it such that this gotcha is at least documented. The USB devices were never removed after booting up and the USB bus numbers would always stay the same (unlike the device numbers). That assumption broke with 1.0.16, but at least I have a workarou

Re: [Libusbx-devel] [libusbx] lsusb order got changed (#131)

2013-08-14 Thread Hans de Goede
There simply is no guarantee that lsusb's output order is somehow stable. If it was for you sofar you've been lucky. Even without the hotplug changes it may change depending on kernel enumeration order (which is racy since the kernel does parallel probing of different busses. --- Reply to this

Re: [Libusbx-devel] [libusbx] lsusb order got changed (#131)

2013-08-14 Thread Hans de Goede
Closed #131. --- Reply to this email directly or view it on GitHub: https://github.com/libusbx/libusbx/issues/131 -- Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed

[Libusbx-devel] [libusb-compat PATCH] Link with -znodelete to disallow unloading

2013-08-14 Thread Hans de Goede
From: Daniel Berrange Since libusb-0.1 did not have any init / exit function, code using the libusb-0.1 API will not call libusb_exit. Now, libgphoto uses libusb and will dlopen() and dlclose() it. Unfortunately since there is no way to ensure libusb_close() is called, when libgphoto dlcloses th

[Libusbx-devel] [libusbx] lsusb order got changed (#131)

2013-08-14 Thread Peter Wu
After upgrading libusbx from 1.0.15 to 1.0.16 I noticed that one of my scripts broke because the output of lsusb (from usbutils 007) got changed. I bisected it to commit 6853291 which added hotplug support to the Linux backend. For now I am using `sort` to get some of devices sorted by bus numbe

Re: [Libusbx-devel] Accessing composite devices using interface association

2013-08-14 Thread Jan Becvar
Hi Xiaofan, >> I would be curious to know, whether you see some principial issue with >> the suggested approach of simply assigning the same backend to all of >> the interfaces from the IAD, based on the knowledge that Windows always >> puts them under responsibility of the same driver. As mentio

Re: [Libusbx-devel] Accessing composite devices using interface association

2013-08-14 Thread Xiaofan Chen
On Wed, Aug 14, 2013 at 2:46 PM, Jan Becvar wrote: > On 14-Aug-13 1:52, Pete Batard wrote: >> As far as WinUSB is concerned, I think the best we can get is >> WinUsb_GetAssociatedInterface(), but that what we're already trying to >> use. > > I saw this call in winusbx_claim_interface, but in my us

Re: [Libusbx-devel] libusb windows 7 unnattended instalation

2013-08-14 Thread Xiaofan Chen
On Wed, Aug 14, 2013 at 3:23 PM, luis morales wrote: > Dear All, > I need to know if it is possible this points: > 1-To execute an unattended installation of libusb in a windows 7 OS (32 > bits) > 2-I need that the driver be signed. > > I executed inf - wizard and I achived the .inf file. The firs

[Libusbx-devel] libusb windows 7 unnattended instalation

2013-08-14 Thread luis morales
Dear All, I need to know if it is possible this points: 1-To execute an unattended installation of libusb in a windows 7 OS (32 bits) 2-I need that the driver be signed. I executed inf - wizard and I achived the .inf file. The first time I executed 1.2.6 driver version, the libusb was installed ok

[Libusbx-devel] [libusbx] libusbx version 1.0.16.10809 compiled with --disable-udev sometimes blocks on libusb_get_device_list() call till a device is plugged/unplugged. (#130)

2013-08-14 Thread ndeliyski
I have debugged this situation and the reason is incorrect usage of fcntl() at set_fd_cloexec_nb() at linux-netlink.c. fcntl() when used for retrieval of value returns it as a function return value NOT at the third argument pointer. Here the ramdom behavior is caused by the different random initi