HAL and scanners

Joe Shaw joeshaw at novell.com
Sat Dec 30 10:57:42 PST 2006


Hi,

Étienne Bersac wrote:
> So the problem is how the app can give to SANE an udi ?

Well, that depends on the design.  If SANE is HAL-aware, then yeah, just 
passing a UDI would be fine.  If not, then your API could be the wrapper 
that provides SANE with the details that it got from HAL.  (This is how 
libgphoto works, I believe.)

> The GLib-ish API is not that simple :). It provide GObject API similar
> to GtkPrint (i intend to make it more consistent to GtkPrint API). All i
> want is to drop the sane_get_devices call and replace it with a hal
> call. But, hal must provide me at least all information provided in
> Sane_Device_Descriptor struct (see
> http://sane.alioth.debian.org/html/doc011.html#s4.2.8 or better:
> http://sane.alioth.debian.org/sane2/0.08/doc011.html#s4.2.8 ). Or i wont
> be able to use that device with hal.

I see.  It sounds like a good idea to generate the FDI files from the 
SANE information, as was suggested by Abel earlier in the thread.  That 
should give you the info you need, right?

Joe


More information about the hal mailing list