device filtering support

Xiaofan Chen xiaofanc at gmail.com
Sun Feb 5 05:02:58 EST 2012


On Sun, Feb 5, 2012 at 5:45 PM, Xiaofan Chen <xiaofanc at gmail.com> wrote:
> On Tue, Jan 31, 2012 at 2:06 PM, Vitali Lovich <vlovich at gmail.com> wrote:
>> https://github.com/vlovich/libusb/tree/filter_support feature rebase on top of rc3
>>
>> Request for review.  Verified works on Linux.  Pretty sure that it works on
>> OSX & Windows as those code paths are even simpler.
>
> Going back to the original thread. I still like your idea of try to
> make sure that the filtering can be performed as early in the stack
> as possible and reduce the unexpected usb traffic generated.
>
> It seems to me that your filter_support branch does not build
> under Mac OS X.
>

There is an issue under Windows as well (tested under MinGW).

  CC     libusb_1_0_la-windows_usb.lo
os/windows_usb.c: In function 'init_device':
os/windows_usb.c:1049:3: error: implicit declaration of function 'usbi_vid_pid_p
asses_fillter' [-Werror=implicit-function-declaration]
os/windows_usb.c:1050:4: warning: passing argument 4 of 'usbi_log' from incompat
ible pointer type [enabled by default]
./libusbi.h:127:6: note: expected 'const char *' but argument is of type 'struct
 libusb_context *'
cc1.exe: some warnings being treated as errors

make[2]: *** [libusb_1_0_la-windows_usb.lo] Error 1



-- 
Xiaofan



More information about the libusbx mailing list