[sane-devel] HAL and scanners.

Étienne Bersac bersace03 at gmail.com
Wed Mar 19 14:50:16 UTC 2008


Hi,

> 1. a small callout, distributed with hal, which replicates the
> sanei_{usb,scsi} device naming logic, and saves this device_name
> string back into the hal data structure
>
> 2. a bigger callout, distributed with ??, which links to the dll
> backend, and takes that device_name string, and does sane_open on it,
> then does button monitoring, etc
> 
> 3. modifying all existing sane backends to accept default device names

1. and 3.. 2. will be an addon (in HAL).

> i have two small concerns about this plan: replication of naming code
> makes that convention a de facto API

This convention is just need if you want to have your scanner usable for
HAL frontend. It is not mendatory. How could we avoid code replication ?

>  and what about external backends?

External backends can have heir own callout or follow common policy.

Regards,
Étienne.





More information about the sane-devel mailing list