[BRLTTY] Linux-specific code for USB support

Alex Bernier alex.bernier at free.fr
Tue Jul 22 09:22:41 EDT 2008


On Tue, Jul 22, 2008 at 09:14:06AM -0400, Dave Mielke wrote:
> [quoted lines by Alex Bernier on 2008/07/22 at 08:48 +0200]
> 
> >How can I add Linux-specific code in BRLTTY ? Is there a specific "#define" 
> >which ensure that we are under Linux ? If not, maybe a solution would be to 
> >add an "detach_usb_device" function in usb_linux.c, usb_bsd.c, usb_darin.c... 
> >which is empty for all except for usb_linux.c. What is the best way ?
> 
> It'd be much better to integrate USB HID support into the core's USB support. 
> Then such special case code wouldn't be necessary.

Even with HID support, I think it would be necessary. 
libhid and libusb use this special code to force direct-use of a HID device 
(to communicate with the device without using usbhid Linux module).

Alex



> 
> -- 
> Dave Mielke           | 2213 Fox Crescent | I believe that the Bible is the
> Phone: 1-613-726-0014 | Ottawa, Ontario   | Word of God. Please contact me
> EMail: dave at mielke.cc | Canada  K2A 1H7   | if you're concerned about Hell.
> http://FamilyRadio.com/                   | http://Mielke.cc/bible/
> _______________________________________________
> This message was sent via the BRLTTY mailing list.
> To post a message, send an e-mail to: BRLTTY at mielke.cc
> For general information, go to: http://mielke.cc/mailman/listinfo/brltty
> 


More information about the BRLTTY mailing list