Scanners in HAL
Dan Nicholson
dbn.lists at gmail.com
Mon Aug 28 08:50:30 PDT 2006
On 8/28/06, Étienne Bersac <bersace03 at laposte.net> wrote:
>
> I wonder how does hal know a device is a camera, a printer, etc. Is that
> only a matter of .fdi files ? Do we have to maintain a vid/pid list like
> udev libsane.rules ?
You can take a look at how libgphoto2 does this. They create a binary
called print-camera-list. This can generate a udev rule file and/or a
HAL fdi file (or a usb.usermap file for deprecated hotplugging).
http://svn.sourceforge.net/viewvc/gphoto/trunk/libgphoto2/packaging/generic/print-camera-list.c?view=markup
http://www.gphoto.org/news/
--
Dan
More information about the hal
mailing list