kopia lustrzana https://gitlab.com/sane-project/website
				
				
				
			
		
			
	
	
		
			68 wiersze
		
	
	
		
			3.2 KiB
		
	
	
	
		
			HTML
		
	
	
		
		
			
		
	
	
			68 wiersze
		
	
	
		
			3.2 KiB
		
	
	
	
		
			HTML
		
	
	
| 
								 | 
							
								<!-- received="Tue Apr 27 15:13:05 1999 PDT" -->
							 | 
						||
| 
								 | 
							
								<!-- sent="Wed, 28 Apr 1999 00:16:39 +0200" -->
							 | 
						||
| 
								 | 
							
								<!-- name="Petter Reinholdtsen" -->
							 | 
						||
| 
								 | 
							
								<!-- email="pere@hungry.com" -->
							 | 
						||
| 
								 | 
							
								<!-- subject="Re: May sane_init fail?" -->
							 | 
						||
| 
								 | 
							
								<!-- id="199904272216.AAA15552@lee.Cc.Uit.No" -->
							 | 
						||
| 
								 | 
							
								<!-- inreplyto="May sane_init fail?" -->
							 | 
						||
| 
								 | 
							
								<title>sane-devel: Re: May sane_init fail?</title>
							 | 
						||
| 
								 | 
							
								<h1>Re: May sane_init fail?</h1>
							 | 
						||
| 
								 | 
							
								<b>Petter Reinholdtsen</b> (<a href="mailto:pere@hungry.com"><i>pere@hungry.com</i></a>)<br>
							 | 
						||
| 
								 | 
							
								<i>Wed, 28 Apr 1999 00:16:39 +0200</i>
							 | 
						||
| 
								 | 
							
								<p>
							 | 
						||
| 
								 | 
							
								<ul>
							 | 
						||
| 
								 | 
							
								<li> <b>Messages sorted by:</b> <a href="date.html#391">[ date ]</a><a href="index.html#391">[ thread ]</a><a href="subject.html#391">[ subject ]</a><a href="author.html#391">[ author ]</a>
							 | 
						||
| 
								 | 
							
								<!-- next="start" -->
							 | 
						||
| 
								 | 
							
								<li> <b>Next message:</b> <a href="0392.html">Petter Reinholdtsen: "Patch: sane_init() may fail"</a>
							 | 
						||
| 
								 | 
							
								<li> <b>Previous message:</b> <a href="0390.html">Luca Del Signore: "Re: HEEEELP!!!!!!!!!!!"</a>
							 | 
						||
| 
								 | 
							
								<li> <b>Maybe in reply to:</b> <a href="0166.html">Petter Reinholdtsen: "May sane_init fail?"</a>
							 | 
						||
| 
								 | 
							
								<!-- nextthread="start" -->
							 | 
						||
| 
								 | 
							
								<li> <b>Next in thread:</b> <a href="0400.html">Ingo Wilken: "Re: May sane_init fail?"</a>
							 | 
						||
| 
								 | 
							
								<li> <b>Reply:</b> <a href="0400.html">Ingo Wilken: "Re: May sane_init fail?"</a>
							 | 
						||
| 
								 | 
							
								<!-- reply="end" -->
							 | 
						||
| 
								 | 
							
								</ul>
							 | 
						||
| 
								 | 
							
								<!-- body="start" -->
							 | 
						||
| 
								 | 
							
								[Graham Stoney]<br>
							 | 
						||
| 
								 | 
							
								<i>> After a quick look at the 1.01-pre4 sources, the DC210 backend can</i><br>
							 | 
						||
| 
								 | 
							
								<i>> also return SANE_STATUS_INVAL. There may be others...</i><br>
							 | 
						||
| 
								 | 
							
								<p>
							 | 
						||
| 
								 | 
							
								After reading dc210.c, I seriously beleave that the tests returning<br>
							 | 
						||
| 
								 | 
							
								SANE_STATUS_INVAL from sane_init() should be moved to sane_open().<br>
							 | 
						||
| 
								 | 
							
								<p>
							 | 
						||
| 
								 | 
							
								I beleave a backend should not connect to the device until sane_open()<br>
							 | 
						||
| 
								 | 
							
								is called.  The DC210 backend opens the serial device, and extract<br>
							 | 
						||
| 
								 | 
							
								camera info in sane_init().<br>
							 | 
						||
| 
								 | 
							
								<p>
							 | 
						||
| 
								 | 
							
								Anyway.  I'm now writing a patch to sane 1.0.1 with my suggested<br>
							 | 
						||
| 
								 | 
							
								change.  I suggest three valid responses from sane_init():<br>
							 | 
						||
| 
								 | 
							
								<p>
							 | 
						||
| 
								 | 
							
								 SANE_STATUS_GOOD        - Success<br>
							 | 
						||
| 
								 | 
							
								 SANE_STATUS_NO_MEM      - Ran out of memory<br>
							 | 
						||
| 
								 | 
							
								 SANE_STATUS_UNSUPPORTED - Not supported on this machines current<br>
							 | 
						||
| 
								 | 
							
											   configuration<br>
							 | 
						||
| 
								 | 
							
								<p>
							 | 
						||
| 
								 | 
							
								Would there be need for more return values?<br>
							 | 
						||
| 
								 | 
							
								<pre>
							 | 
						||
| 
								 | 
							
								-- 
							 | 
						||
| 
								 | 
							
								##>  Petter Reinholdtsen <##    | <a href="mailto:pere@td.org.uit.no">pere@td.org.uit.no</a>
							 | 
						||
| 
								 | 
							
								 O-  <SCRIPT Language="Javascript">window.close()</SCRIPT>
							 | 
						||
| 
								 | 
							
								<a href="http://www.hungry.com/~pere/">http://www.hungry.com/~pere/</a>    | Go Mozilla, go! Go!
							 | 
						||
| 
								 | 
							
								<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="0392.html">Petter Reinholdtsen: "Patch: sane_init() may fail"</a>
							 | 
						||
| 
								 | 
							
								<li> <b>Previous message:</b> <a href="0390.html">Luca Del Signore: "Re: HEEEELP!!!!!!!!!!!"</a>
							 | 
						||
| 
								 | 
							
								<li> <b>Maybe in reply to:</b> <a href="0166.html">Petter Reinholdtsen: "May sane_init fail?"</a>
							 | 
						||
| 
								 | 
							
								<!-- nextthread="start" -->
							 | 
						||
| 
								 | 
							
								<li> <b>Next in thread:</b> <a href="0400.html">Ingo Wilken: "Re: May sane_init fail?"</a>
							 | 
						||
| 
								 | 
							
								<li> <b>Reply:</b> <a href="0400.html">Ingo Wilken: "Re: May sane_init fail?"</a>
							 | 
						||
| 
								 | 
							
								<!-- reply="end" -->
							 | 
						||
| 
								 | 
							
								</ul>
							 |