[sane-devel] Epson Perfection V800 error

m. allan noah kitno455 at gmail.com
Wed May 13 12:06:21 UTC 2015


Stef did some work a few years ago on sanei_configure_attach, which
might fill the need. In the short term, I will say that my backends
all call sane_get_devices inside sane_open if there is no cached list
of devices.

allan

On Tue, May 12, 2015 at 10:17 PM, Olaf Meeuwissen
<olaf.meeuwissen at avasys.jp> wrote:
>
> 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.
>
> ACK.
>
>>  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
> for example.
>
> Thanks for the patch,
> --
> Olaf Meeuwissen, LPIC-2           FLOSS Engineer -- AVASYS CORPORATION
> FSF Associate Member #1962               Help support software freedom
>                  http://www.fsf.org/jf?referrer=1962
>
> --
> sane-devel mailing list: sane-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
>              to sane-devel-request at lists.alioth.debian.org



-- 
"well, I stand up next to a mountain- and I chop it down with the edge
of my hand"



More information about the sane-devel mailing list