[sane-devel] Setting backend capabilities
skelband at gmail.com
Sat Mar 7 15:06:17 GMT 2020
On Sat, Mar 7, 2020, 00:35 Alexander Pevzner, <pzz at apevzner.com> wrote:
> > SANE_CAP_SOFT_SELECT indicates that the control can be set by a call to
> > sane_control_option().> SANE_CAP_HARD_SELECT indicates that physical
> user intervention (like > setting a switch) can set the value.
> SOFT_SELECT means that option is software-settable. HARD_SELECT means
> that not. From the application perspective, the only important thing, if
> the option is read-write or read-only. Hence, I'd use SOFT_SELECT.
> P.S. When in doubt, it's better to look how these options are
> interpreted by popular applications. I've looked to xsane sources, it
> ignores the HARD_SELECT flag at all.
Thanks that makes sense to me.
Perhaps the SANE spec could be updated to add some clarity in this regard.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the sane-devel