kopia lustrzana https://gitlab.com/sane-project/website
126 wiersze
5.1 KiB
HTML
126 wiersze
5.1 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
|
|
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>sane-devel: Re: Return values of sane_init() (Was: EOF detectio</TITLE>
|
|
<META NAME="Author" CONTENT="Henning Meier-Geinitz (henning@meier-geinitz.de)">
|
|
<META NAME="Subject" CONTENT="Re: Return values of sane_init() (Was: EOF detection)">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|
<H1>Re: Return values of sane_init() (Was: EOF detection)</H1>
|
|
<!-- received="Fri May 11 10:13:32 2001" -->
|
|
<!-- isoreceived="20010511171332" -->
|
|
<!-- sent="Fri, 11 May 2001 19:13:15 +0200" -->
|
|
<!-- isosent="20010511171315" -->
|
|
<!-- name="Henning Meier-Geinitz" -->
|
|
<!-- email="henning@meier-geinitz.de" -->
|
|
<!-- subject="Re: Return values of sane_init() (Was: EOF detection)" -->
|
|
<!-- id="20010511191315.D28460@vortex.swb.de" -->
|
|
<!-- inreplyto="E14xyCU-00013L-00@false.linpro.no" -->
|
|
<STRONG>From:</STRONG> Henning Meier-Geinitz (<A HREF="mailto:henning@meier-geinitz.de?Subject=Re:%20Return%20values%20of%20sane_init()%20(Was:%20EOF%20detection)&In-Reply-To=<20010511191315.D28460@vortex.swb.de>"><EM>henning@meier-geinitz.de</EM></A>)<BR>
|
|
<STRONG>Date:</STRONG> Fri May 11 2001 - 10:13:15 PDT
|
|
<P>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0137.html">Henning Meier-Geinitz: "Re: Xsane - winsane? was Re: saned won't run under inetd"</A>
|
|
<UL>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0135.html">Henning Meier-Geinitz: "Re: SANE 1.0.4 on Tru64 Unix: build failure"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0120.html">Petter Reinholdtsen: "Return values of sane_init() (Was: EOF detection)"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0251.html">Henning Meier-Geinitz: "Re: Return values of sane_init() (Was: EOF detection)"</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0251.html">Henning Meier-Geinitz: "Re: Return values of sane_init() (Was: EOF detection)"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#136">[ date ]</A>
|
|
<A HREF="index.html#136">[ thread ]</A>
|
|
<A HREF="subject.html#136">[ subject ]</A>
|
|
<A HREF="author.html#136">[ author ]</A>
|
|
</UL>
|
|
<HR NOSHADE><P>
|
|
<!-- body="start" -->
|
|
<P>
|
|
Hi,
|
|
<BR>
|
|
<P>On Thu, May 10, 2001 at 11:42:22PM +0200, Petter Reinholdtsen wrote:
|
|
<BR>
|
|
<EM>> While we are updating the SANE specification, parhaps it is time to
|
|
</EM><BR>
|
|
<EM>> document the return values for sane_init()?
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> SANE_STATUS_GOOD is clear, but what about the other values. Is it OK
|
|
</EM><BR>
|
|
<EM>> to call any of the other sane_* functions if sane_init() failed?
|
|
</EM><BR>
|
|
<P>I think that's just undefined. We shouldn't change the current
|
|
<BR>
|
|
behaviour, just document it. In SANE 2 we can disallow calls to other
|
|
<BR>
|
|
SANE functions when the result of sane_init() is !SANE_STATUS_GOOD.
|
|
<BR>
|
|
<P>This is from the old thread and copied from other parts of the standard:
|
|
<BR>
|
|
<P>4.3.1 sane_init
|
|
<BR>
|
|
This function must be called before any other SANE function can be
|
|
<BR>
|
|
called. The behavior of a SANE backend is undefined if this function
|
|
<BR>
|
|
is not called first, or if the returned status is anything other then
|
|
<BR>
|
|
SANE_STATUS_GOOD.
|
|
<BR>
|
|
<P>[...] The returned strings must be ASCII-NUL terminated.
|
|
<BR>
|
|
<P>This function may fail with one of the following status codes.
|
|
<BR>
|
|
<P>SANE_STATUS_UNSUPPORTED:
|
|
<BR>
|
|
The operation is not supported for the current configuration.
|
|
<BR>
|
|
number.
|
|
<BR>
|
|
SANE_STATUS_NO_MEM:
|
|
<BR>
|
|
An insufficent amount of memory is available.
|
|
<BR>
|
|
<P>More?
|
|
<BR>
|
|
<P>Bye,
|
|
<BR>
|
|
Henning
|
|
<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?Subject=Re:%20Return%20values%20of%20sane_init()%20(Was:%20EOF%20detection)&In-Reply-To=<20010511191315.D28460@vortex.swb.de>">majordomo@mostang.com</A>
|
|
</PRE>
|
|
<P><!-- body="end" -->
|
|
<HR NOSHADE>
|
|
<UL>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0137.html">Henning Meier-Geinitz: "Re: Xsane - winsane? was Re: saned won't run under inetd"</A>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0135.html">Henning Meier-Geinitz: "Re: SANE 1.0.4 on Tru64 Unix: build failure"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0120.html">Petter Reinholdtsen: "Return values of sane_init() (Was: EOF detection)"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0251.html">Henning Meier-Geinitz: "Re: Return values of sane_init() (Was: EOF detection)"</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0251.html">Henning Meier-Geinitz: "Re: Return values of sane_init() (Was: EOF detection)"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#136">[ date ]</A>
|
|
<A HREF="index.html#136">[ thread ]</A>
|
|
<A HREF="subject.html#136">[ subject ]</A>
|
|
<A HREF="author.html#136">[ author ]</A>
|
|
</UL>
|
|
<!-- trailer="footer" -->
|
|
<HR NOSHADE>
|
|
<P>
|
|
<SMALL>
|
|
<EM>
|
|
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
|
|
: <EM>Fri May 11 2001 - 10:14:38 PDT</EM>
|
|
</EM>
|
|
</SMALL>
|
|
</BODY>
|
|
</HTML>
|