kopia lustrzana https://gitlab.com/sane-project/website
104 wiersze
4.8 KiB
HTML
104 wiersze
4.8 KiB
HTML
<!-- received="Sun Nov 21 15:04:31 1999 PST" -->
|
||
<!-- sent="Mon, 22 Nov 1999 00:03:52 +0100" -->
|
||
<!-- name="Oliver Rauch" -->
|
||
<!-- email="oliver.rauch@Wolfsburg.DE" -->
|
||
<!-- subject="Re: Backend development problems." -->
|
||
<!-- id="" -->
|
||
<!-- inreplyto="Backend development problems." -->
|
||
<title>sane-devel: Re: Backend development problems.</title>
|
||
<h1>Re: Backend development problems.</h1>
|
||
<b>Oliver Rauch</b> (<a href="mailto:oliver.rauch@Wolfsburg.DE"><i>oliver.rauch@Wolfsburg.DE</i></a>)<br>
|
||
<i>Mon, 22 Nov 1999 00:03:52 +0100</i>
|
||
<p>
|
||
<ul>
|
||
<li> <b>Messages sorted by:</b> <a href="date.html#202">[ date ]</a><a href="index.html#202">[ thread ]</a><a href="subject.html#202">[ subject ]</a><a href="author.html#202">[ author ]</a>
|
||
<!-- next="start" -->
|
||
<li> <b>Next message:</b> <a href="0203.html">Oliver Rauch: "Re: Please test sane cvs - soname of backend libs"</a>
|
||
<li> <b>Previous message:</b> <a href="0201.html">Oliver Rauch: "Re: Problem with SANE and SCSI scanner"</a>
|
||
<li> <b>Maybe in reply to:</b> <a href="0198.html">Dave Restall - System Administrator: "Backend development problems."</a>
|
||
<!-- nextthread="start" -->
|
||
<li> <b>Next in thread:</b> <a href="0213.html">Dave Restall - System Administrator: "Re:- Re: Backend development problems."</a>
|
||
<li> <b>Reply:</b> <a href="0213.html">Dave Restall - System Administrator: "Re:- Re: Backend development problems."</a>
|
||
<li> <b>Reply:</b> <a href="0215.html">Randolph Bentson: "Re:- Re: Backend development problems."</a>
|
||
<!-- reply="end" -->
|
||
</ul>
|
||
<!-- body="start" -->
|
||
Dave Restall - System Administrator wrote:<br>
|
||
<p>
|
||
<i>> Hi,</i><br>
|
||
<i>></i><br>
|
||
<i>> I've started and am having a problem :-(</i><br>
|
||
<i>></i><br>
|
||
<i>> Why do none of the existing backends follow the standard ? They all do</i><br>
|
||
<i>> far more in sane_init than the standard requires.</i><br>
|
||
<i>></i><br>
|
||
<p>
|
||
They all follow that standrard. It is defined that a frontend has to call<br>
|
||
sane_init before it calls any other sane_* function. It also is defined<br>
|
||
what has to be done with the parameters version_code and<br>
|
||
authoraziation_callback, but it is NOT defined that the backend HAS<br>
|
||
TO DO NOTHING ELSE!<br>
|
||
<p>
|
||
If a backend supports more than one device it has to creat a list of<br>
|
||
available devices. This can be done in sane_get_devices and in<br>
|
||
sane_open, but it is not forbidden to create this list in sane_init.<br>
|
||
<p>
|
||
<i>></i><br>
|
||
<i>> I created all the routines as stubs and put the single line in them</i><br>
|
||
<i>> saying :-</i><br>
|
||
<i>></i><br>
|
||
<i>> printf("In routine ROUTINE_NAME\n");</i><br>
|
||
<i>></i><br>
|
||
<i>> and making them return SANE_STATUS_GOOD,</i><br>
|
||
<i>></i><br>
|
||
<i>> using scanimage -d pie:/dev/sg2 I would expect the following output :-</i><br>
|
||
<i>></i><br>
|
||
<i>> In Routine sane_init</i><br>
|
||
<i>> In Routine sane_open</i><br>
|
||
<i>></i><br>
|
||
<i>> etc. ala page 32 of the spec.</i><br>
|
||
<i>></i><br>
|
||
<i>> I don't get this, all I get is :-</i><br>
|
||
<i>></i><br>
|
||
<i>> In Routine sane_init</i><br>
|
||
<i>> scanimage: open of device pie:/dev/sg2 failed: Invalid argument</i><br>
|
||
<p>
|
||
If I do that with the umax backend, I get exact what you expect:<br>
|
||
<p>
|
||
$ scanimage -d umax:/dev/sga 2>&1 1>/dev/null | grep sane_<br>
|
||
[umax] sane_init<br>
|
||
[umax] sane_open<br>
|
||
...<br>
|
||
<p>
|
||
Bye<br>
|
||
Oliver<br>
|
||
<p>
|
||
<pre>
|
||
--
|
||
Homepage: <a href="http://www.wolfsburg.de/~rauch">http://www.wolfsburg.de/~rauch</a>
|
||
sane-umax: <a href="http://www.wolfsburg.de/~rauch/sane/sane-umax.html">http://www.wolfsburg.de/~rauch/sane/sane-umax.html</a>
|
||
xsane: <a href="http://www.wolfsburg.de/~rauch/sane/sane-xsane.html">http://www.wolfsburg.de/~rauch/sane/sane-xsane.html</a>
|
||
E-Mail: <a href="mailto:Oliver.Rauch@Wolfsburg.DE">mailto:Oliver.Rauch@Wolfsburg.DE</a>
|
||
<p>
|
||
<p>
|
||
<p>
|
||
<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="0203.html">Oliver Rauch: "Re: Please test sane cvs - soname of backend libs"</a>
|
||
<li> <b>Previous message:</b> <a href="0201.html">Oliver Rauch: "Re: Problem with SANE and SCSI scanner"</a>
|
||
<li> <b>Maybe in reply to:</b> <a href="0198.html">Dave Restall - System Administrator: "Backend development problems."</a>
|
||
<!-- nextthread="start" -->
|
||
<li> <b>Next in thread:</b> <a href="0213.html">Dave Restall - System Administrator: "Re:- Re: Backend development problems."</a>
|
||
<li> <b>Reply:</b> <a href="0213.html">Dave Restall - System Administrator: "Re:- Re: Backend development problems."</a>
|
||
<li> <b>Reply:</b> <a href="0215.html">Randolph Bentson: "Re:- Re: Backend development problems."</a>
|
||
<!-- reply="end" -->
|
||
</ul>
|