sane config files [was [sane-devel] Infrared channel]]

Julien BLACHE jb@jblache.org
Thu, 24 Feb 2005 18:49:27 +0100


"m. allan noah" <anoah@pfeiffer.edu> wrote:

> let me ask this: how many of the config files that must be kept are
> kept because they have scanner-specific information in them, as
> opposed to backend-specific information?
>
> ie: how many times does a conf file say:
>
> 'for any scanners that use this backend, enable feature x"
>
> v/s
>
> 'for this particular model of scanner, enable feature x'
>
> v/s
>
> 'for this particular serial number, enable feature x'
>
> the reason i ask is that it would seem, based on the name, that only
> the first example really belongs in 'backend.conf', where the others
> belong in a per-model or per-SN file?

Don't you think that at least item 1 and 2 can be detected by the
backend ? (the serial number might not be accessible by the backend,
sure). There's still the possibility that a vendor will slightly
modify the hardware and not anything else, making it impossible to
guess which version of the hardware we're talking to.

If we cannot get rid of the config files (there's some experience like
the same product ID applying to slightly different hardware), we can
at least have a look at them as they are now, see if there are options
that can be removed, and try to come up with a unified format.

JB.

-- 
Julien BLACHE                                   <http://www.jblache.org> 
<jb@jblache.org>                                  GPG KeyID 0xF5D65169