[sane-devel] getenv(SANE_USB_TIMEOUT)
m. allan noah
kitno455 at gmail.com
Wed Jul 16 12:08:26 UTC 2008
On 7/16/08, Lev A. Melnikovsky <leva at hotmail.com> wrote:
> 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
i think that will be ok, backends that override the timeout after usb
init should see no changes.
allan
--
"The truth is an offense, but not a sin"
More information about the sane-devel
mailing list