kopia lustrzana https://gitlab.com/sane-project/website
74 wiersze
3.4 KiB
HTML
74 wiersze
3.4 KiB
HTML
<!-- received="Sun Apr 11 13:54:18 1999 PDT" -->
|
|
<!-- sent="Sun, 11 Apr 1999 13:54:16 -0700" -->
|
|
<!-- name="David Mosberger-Tang" -->
|
|
<!-- email="David.Mosberger@acm.org" -->
|
|
<!-- subject="Re: May sane_init fail?" -->
|
|
<!-- id="199904112054.NAA04893@panda.mostang.com" -->
|
|
<!-- inreplyto="199904112044.WAA10685@lee.Cc.Uit.No" -->
|
|
<title>sane-devel: Re: May sane_init fail?</title>
|
|
<h1>Re: May sane_init fail?</h1>
|
|
<b>David Mosberger-Tang</b> (<a href="mailto:David.Mosberger@acm.org"><i>David.Mosberger@acm.org</i></a>)<br>
|
|
<i>Sun, 11 Apr 1999 13:54:16 -0700</i>
|
|
<p>
|
|
<ul>
|
|
<li> <b>Messages sorted by:</b> <a href="date.html#197">[ date ]</a><a href="index.html#197">[ thread ]</a><a href="subject.html#197">[ subject ]</a><a href="author.html#197">[ author ]</a>
|
|
<!-- next="start" -->
|
|
<li> <b>Next message:</b> <a href="0198.html">Petter Reinholdtsen: "Re: May sane_init fail?"</a>
|
|
<li> <b>Previous message:</b> <a href="0196.html">Tripp Lilley: "Re: May sane_init fail?"</a>
|
|
<li> <b>In reply to:</b> <a href="0194.html">Petter Reinholdtsen: "Re: May sane_init fail?"</a>
|
|
<!-- nextthread="start" -->
|
|
<li> <b>Next in thread:</b> <a href="0200.html">Graham Stoney: "Re: May sane_init fail?"</a>
|
|
<li> <b>Next in thread:</b> <a href="0198.html">Petter Reinholdtsen: "Re: May sane_init fail?"</a>
|
|
<li> <b>Reply:</b> <a href="0200.html">Graham Stoney: "Re: May sane_init fail?"</a>
|
|
<!-- reply="end" -->
|
|
</ul>
|
|
<!-- body="start" -->
|
|
<i>>>>>> On Sun, 11 Apr 1999 22:44:52 +0200, Petter Reinholdtsen <<a href="mailto:pere@hungry.com">pere@hungry.com</a>> said:</i><br>
|
|
<p>
|
|
Petter> The dll backend is checking for status != SANE_STATUS_GOOD<br>
|
|
Petter> before accepting the backend.<br>
|
|
<p>
|
|
Oops, you're right.<br>
|
|
<p>
|
|
Petter> I'm not sure if any backends actually is using this, but I<br>
|
|
Petter> beleave there should be a way for the backend to say "don't<br>
|
|
Petter> use me", and that sane_init therefore should return<br>
|
|
Petter> SANE_Status.<br>
|
|
<p>
|
|
That's fine, but the backend must not rely on not being called anymore<br>
|
|
after returning a status other than SANE_STATUS_GOOD in sane_init().<br>
|
|
<p>
|
|
Petter> I suggest SANE_STATUS_GOOD if all is OK, and<br>
|
|
Petter> SANE_STATUS_UNSUPPORTED if the backend beleave itself to be<br>
|
|
Petter> useless.<br>
|
|
<p>
|
|
I think the these status codes are potentially useful to return in<br>
|
|
sane_init:<br>
|
|
<p>
|
|
SANE_STATUS_GOOD<br>
|
|
SANE_STATUS_UNSUPPORTED<br>
|
|
SANE_STATUS_NO_MEM<br>
|
|
SANE_STATUS_IO_ERROR<br>
|
|
SANE_STATUS_ACCESS_DENIED<br>
|
|
<p>
|
|
--david<br>
|
|
<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="0198.html">Petter Reinholdtsen: "Re: May sane_init fail?"</a>
|
|
<li> <b>Previous message:</b> <a href="0196.html">Tripp Lilley: "Re: May sane_init fail?"</a>
|
|
<li> <b>In reply to:</b> <a href="0194.html">Petter Reinholdtsen: "Re: May sane_init fail?"</a>
|
|
<!-- nextthread="start" -->
|
|
<li> <b>Next in thread:</b> <a href="0200.html">Graham Stoney: "Re: May sane_init fail?"</a>
|
|
<li> <b>Next in thread:</b> <a href="0198.html">Petter Reinholdtsen: "Re: May sane_init fail?"</a>
|
|
<li> <b>Reply:</b> <a href="0200.html">Graham Stoney: "Re: May sane_init fail?"</a>
|
|
<!-- reply="end" -->
|
|
</ul>
|