[sane-devel] Epson Perfection V800 error
olaf.meeuwissen at avasys.jp
Wed May 13 02:17:16 UTC 2015
Alessandro Zummo writes:
> On Wed, 13 May 2015 08:28:24 +0900
> Olaf Meeuwissen <olaf.meeuwissen at avasys.jp> wrote:
>> Wouldn't the Right Thing to do be to change the backend to read its
>> configuration in sane_init()? The SANE spec is pretty clear about the
>> fact that frontends do not have to call sane_get_devices() before they
>> call sane_open().
> due to the way sanei_config_attach works, reading the config
> file will trigger a scan of all the devices, which I would rather
> avoid when the user specifies a device in sane_open().
> the whole config system probably needs an overhaul, as
> there's much duplicate code in a lot of drivers.
> we need something to parse the configuration on startup
> and act on it at a later stage, but I don't have the time do
> write it.
> so if this patch works, it's the best I can do right now ;)
I thought so much but it is better to be explicit about that, either in
the mail or better yet in the patch itself in the form of code comments
Thanks for the patch,
Olaf Meeuwissen, LPIC-2 FLOSS Engineer -- AVASYS CORPORATION
FSF Associate Member #1962 Help support software freedom
More information about the sane-devel