[sane-devel] getenv(SANE_USB_TIMEOUT)
Lev A. Melnikovsky
leva at hotmail.com
Wed Jul 16 11:47:46 UTC 2008
Dear allan,
On Wed, 16 Jul 2008 at 4:46am, m. allan noah wrote:
man> there already is a mechanism for the backend to change the timeout:
man> sanei_usb_set_timeout. which takes precedence, the env var or the
man> backend?
My intention was to only modify sanei_usb_init function. This would change
the default value for libusb_timeout if SANE_USB_TIMEOUT is set. Generic
"hp" backend does not use sanei_usb_set_timeout() function and will only
use the (replaced by SANE_USB_TIMEOUT) default. Those backends that
explicitly set the timeout with sanei_usb_set_timeout() will override the
default with whatever they think is appropriate...
Is this the right thing to do? Please advise
-L
More information about the sane-devel
mailing list