device filtering support
Xiaofan Chen
xiaofanc at gmail.com
Sun Feb 5 04:45:44 EST 2012
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.
mymacmini:libusb xiaofanc$ make
make all-recursive
Making all in libusb
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I.. -fvisibility=hidden -std=gnu99 -Wall -Wundef -Wunused
-Wstrict-prototypes -Werror-implicit-function-declaration
-Wno-pointer-sign -Wshadow -g -O2 -MT libusb_1_0_la-darwin_usb.lo -MD
-MP -MF .deps/libusb_1_0_la-darwin_usb.Tpo -c -o
libusb_1_0_la-darwin_usb.lo `test -f 'os/darwin_usb.c' || echo
'./'`os/darwin_usb.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden
-std=gnu99 -Wall -Wundef -Wunused -Wstrict-prototypes
-Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow -g
-O2 -MT libusb_1_0_la-darwin_usb.lo -MD -MP -MF
.deps/libusb_1_0_la-darwin_usb.Tpo -c os/darwin_usb.c -fno-common
-DPIC -o .libs/libusb_1_0_la-darwin_usb.o
os/darwin_usb.c: In function 'darwin_cache_device_descriptor':
os/darwin_usb.c:588: error: 'address' undeclared (first use in this function)
os/darwin_usb.c:588: error: (Each undeclared identifier is reported only once
os/darwin_usb.c:588: error: for each function it appears in.)
os/darwin_usb.c:592: error: 'bDeviceSubClass' undeclared (first use in
this function)
os/darwin_usb.c:595: error: 'locationID' undeclared (first use in this function)
os/darwin_usb.c:595: warning: passing argument 4 of 'usbi_log' from
incompatible pointer type
os/darwin_usb.c: In function 'darwin_async_io_callback':
os/darwin_usb.c:1564: warning: cast from pointer to integer of different size
make[2]: *** [libusb_1_0_la-darwin_usb.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
--
Xiaofan
More information about the libusbx
mailing list