sane-project-website/old-archive/1998-01/0045.html

91 wiersze
4.8 KiB
HTML

<!-- received="Tue Jan 13 06:23:54 1998 PST" -->
<!-- sent="Tue, 13 Jan 1998 09:15:50 +0100 (MET)" -->
<!-- name="Rogier Wolff" -->
<!-- email="R.E.Wolff@BitWizard.nl" -->
<!-- subject="Re: Probable Bugs &amp; Suggestions" -->
<!-- id="199801130815.JAA00686@cave.BitWizard.nl" -->
<!-- inreplyto="199801130727.XAA18342@panda.mostang.com" -->
<title>sane-devel: Re: Probable Bugs &amp; Suggestions</title>
<h1>Re: Probable Bugs &amp; Suggestions</h1>
<b>Rogier Wolff</b> (<a href="mailto:R.E.Wolff@BitWizard.nl"><i>R.E.Wolff@BitWizard.nl</i></a>)<br>
<i>Tue, 13 Jan 1998 09:15:50 +0100 (MET)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#45">[ date ]</a><a href="index.html#45">[ thread ]</a><a href="subject.html#45">[ subject ]</a><a href="author.html#45">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0046.html">Dan Sugalski: "Re: Mustek 600 III EP plus"</a>
<li> <b>Previous message:</b> <a href="0044.html">David Mosberger-Tang: "Re: Mustek 600 III EP plus"</a>
<li> <b>In reply to:</b> <a href="0042.html">David Mosberger-Tang: "Re: Probable Bugs &amp; Suggestions"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0053.html">David Mosberger-Tang: "Re: Probable Bugs &amp; Suggestions"</a>
<li> <b>Reply:</b> <a href="0053.html">David Mosberger-Tang: "Re: Probable Bugs &amp; Suggestions"</a>
<!-- reply="end" -->
</ul>
<!-- body="start" -->
David Mosberger-Tang wrote:<br>
<i>&gt; </i><br>
<i>&gt; &gt;&gt;&gt;&gt;&gt; On Thu, 18 Dec 1997 22:05:34 -0500, Matto Marjanovic &lt;<a href="mailto:maddog@mir.com">maddog@mir.com</a>&gt; said:</i><br>
<i>&gt; </i><br>
<i>&gt; Matto&gt; While a scan is in progress, the microtek backend responds to</i><br>
<i>&gt; Matto&gt; any requests to change parameters with</i><br>
<i>&gt; Matto&gt; SANE_STATUS_DEVICE_BUSY... Is this a reasonable behavior?</i><br>
<i>&gt; Matto&gt; This response is actually not enumerated as a valid response</i><br>
<i>&gt; Matto&gt; to sane_control_option in the API documentation. Should the</i><br>
<i>&gt; Matto&gt; frontend retry on its own volition, or pop up an error for</i><br>
<i>&gt; Matto&gt; the user and drop the issue?</i><br>
<i>&gt; </i><br>
<i>&gt; Yeah, this has been a long-standing issue that hasn't been fully resolved</i><br>
<i>&gt; yet.</i><br>
<i>&gt; </i><br>
<i>&gt; I see two reasonable solutions:</i><br>
<i>&gt; </i><br>
<i>&gt; 1. Make sane_start() return a special status value when the backend</i><br>
<i>&gt; does not want to see any control_option() calls while a scan is in</i><br>
<i>&gt; progress (e.g., something like</i><br>
<i>&gt; SANE_STATUS_IN_PROGRESS_DO_NOT_TOUCH_OPTION_SETTINGS but maybe not</i><br>
<i>&gt; quite as verbose... ;-)</i><br>
<i>&gt; </i><br>
<i>&gt; 2. Add a option descriptor bit to indicate which options are busy</i><br>
<i>&gt; during a scan (i.e., which options can't be modified while a scan</i><br>
<i>&gt; is in progress).</i><br>
<i>&gt; </i><br>
<i>&gt; I currently favor the first solution since its simpler and since I'm</i><br>
<i>&gt; not sure how often there would be backends that have some but not all</i><br>
<i>&gt; options being busy while a scan is in progress. Other opinions?</i><br>
<p>
What is wrong with the backend returning "busy", and a frontend then<br>
having to conclude "oops, can't seem to do that right now"?<br>
<p>
+ No added options<br>
+ Allows for selective "locking".<br>
+ Minimal intrusion in installed base.<br>
- frontends must perform a scan to be able to gray out invalid options.<br>
<p>
Roger.<br>
<p>
<p>
<pre>
--
** <a href="mailto:R.E.Wolff@BitWizard.nl">R.E.Wolff@BitWizard.nl</a> ** +31-15-2137555 ** <a href="http://www.BitWizard.nl/">http://www.BitWizard.nl/</a> **
Florida -- A 39 year old construction worker woke up this morning when a
109-car freight train drove over him. According to the police the man was
drunk. The man himself claims he slipped while walking the dog. 080897
<p>
<pre>
--
Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a>
To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0046.html">Dan Sugalski: "Re: Mustek 600 III EP plus"</a>
<li> <b>Previous message:</b> <a href="0044.html">David Mosberger-Tang: "Re: Mustek 600 III EP plus"</a>
<li> <b>In reply to:</b> <a href="0042.html">David Mosberger-Tang: "Re: Probable Bugs &amp; Suggestions"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0053.html">David Mosberger-Tang: "Re: Probable Bugs &amp; Suggestions"</a>
<li> <b>Reply:</b> <a href="0053.html">David Mosberger-Tang: "Re: Probable Bugs &amp; Suggestions"</a>
<!-- reply="end" -->
</ul>