[sane-devel] SANE API / How to detect disconnect of scanner
m. allan noah
kitno455 at gmail.com
Sun Apr 12 23:42:05 UTC 2009
On Sun, Apr 12, 2009 at 5:06 PM, Florian Lohoff <flo at rfc822.org> wrote:
> On Sun, Apr 12, 2009 at 11:00:38PM +0200, Florian Lohoff wrote:
>> Subject: Re: [sane-devel] SANE API / How to detect disconnect of scanner
>> On Sun, Apr 12, 2009 at 03:23:06PM -0400, m. allan noah wrote:
>> > Well, I wrote the fujitsu backend, so I feel justified in saying that
>> > is a bug :) What version of sane-backends are you using?
>> Debian lenny package
>> ii libsane 1.0.19-23 API library for scanners
>> ii libsane-dev 1.0.19-23 API development library for scanners [development file
>> ii libsane-extras 184.108.40.206 API library for scanners -- extra backends
>> ii libsane-extras-dev 220.127.116.11 API development library for scanners [development file
>> ii sane 1.0.14-7 scanner graphical frontends
>> ii sane-utils 1.0.19-23 API library for scanners -- utilities
> I already had a look at the code and the only way for the fujitsu backend
> to make an immediate read or write with returning the state is set_sleep_mode
> it seems.
dont spend too much time looking at 1.0.19, it is 14 months old, much
> It would be nice to extend the SANE api to explicitly only query for hardware
> state. I guess there is more use of that function than my little toying
> with scanner buttons. For long running applications which open the device
> its wise to regularly check if the hardware is still there.
presumably if you are really integrating with udev or hal, you dont
need sane to tell you the device is gone...
> Florian Lohoff flo at rfc822.org +49-171-2280134
> Those who would give up a little freedom to get a little
> security shall soon have neither - Benjamin Franklin
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> -----END PGP SIGNATURE-----
"The truth is an offense, but not a sin"
More information about the sane-devel