kopia lustrzana https://gitlab.com/sane-project/website
99 wiersze
4.4 KiB
HTML
99 wiersze
4.4 KiB
HTML
<!-- received="Sun Nov 21 13:05:21 1999 PST" -->
|
|
<!-- sent="Sun, 21 Nov 1999 21:05:14 +0000" -->
|
|
<!-- name="Dave Restall - System Administrator" -->
|
|
<!-- email="dave@restall.net" -->
|
|
<!-- subject="Backend development problems." -->
|
|
<!-- id="E11peAc-0001RS-00@basil.restall.net" -->
|
|
<!-- inreplyto="" -->
|
|
<title>sane-devel: Backend development problems.</title>
|
|
<h1>Backend development problems.</h1>
|
|
<b>Dave Restall - System Administrator</b> (<a href="mailto:dave@restall.net"><i>dave@restall.net</i></a>)<br>
|
|
<i>Sun, 21 Nov 1999 21:05:14 +0000</i>
|
|
<p>
|
|
<ul>
|
|
<li> <b>Messages sorted by:</b> <a href="date.html#198">[ date ]</a><a href="index.html#198">[ thread ]</a><a href="subject.html#198">[ subject ]</a><a href="author.html#198">[ author ]</a>
|
|
<!-- next="start" -->
|
|
<li> <b>Next message:</b> <a href="0199.html">Larry Snyder: "Re: Problem with SANE and SCSI scanner"</a>
|
|
<li> <b>Previous message:</b> <a href="0197.html">Laura DeWitt: "Problem with SANE and SCSI scanner"</a>
|
|
<!-- nextthread="start" -->
|
|
<li> <b>Next in thread:</b> <a href="0202.html">Oliver Rauch: "Re: Backend development problems."</a>
|
|
<li> <b>Reply:</b> <a href="0202.html">Oliver Rauch: "Re: Backend development problems."</a>
|
|
<!-- reply="end" -->
|
|
</ul>
|
|
<!-- body="start" -->
|
|
Hi,<br>
|
|
<p>
|
|
I've started and am having a problem :-(<br>
|
|
<p>
|
|
Why do none of the existing backends follow the standard ? They all do<br>
|
|
far more in sane_init than the standard requires.<br>
|
|
<p>
|
|
I created all the routines as stubs and put the single line in them<br>
|
|
saying :-<br>
|
|
<p>
|
|
printf("In routine ROUTINE_NAME\n");<br>
|
|
<p>
|
|
and making them return SANE_STATUS_GOOD,<br>
|
|
<p>
|
|
using scanimage -d pie:/dev/sg2 I would expect the following output :-<br>
|
|
<p>
|
|
In Routine sane_init<br>
|
|
In Routine sane_open<br>
|
|
<p>
|
|
etc. ala page 32 of the spec.<br>
|
|
<p>
|
|
I don't get this, all I get is :-<br>
|
|
<p>
|
|
In Routine sane_init<br>
|
|
scanimage: open of device pie:/dev/sg2 failed: Invalid argument<br>
|
|
<p>
|
|
It appears to be failing in the correct place, and calling my sane_init<br>
|
|
function, but why aren't I getting the other messages ? I put a wrapper<br>
|
|
line round the call to sane_open in scanimage and it does get the<br>
|
|
details and it makes the call with the correct arguments, but it never<br>
|
|
seems to get to my section of code (I have tried using umax:/dev/sg2 and<br>
|
|
s9036:/dev/sg2) but get the same results.<br>
|
|
<p>
|
|
I can only think that sane_init must do more than the spec says, and the<br>
|
|
other backends seem to bear this out.<br>
|
|
<p>
|
|
Alternatively there must be some wrapper somewhere that parses the<br>
|
|
arguments to sane_open and decides that it doesn't like them and simply<br>
|
|
returns an error status before calling my test stubs.<br>
|
|
<p>
|
|
Sorry if these are thick questions but I need some ideas as to what's<br>
|
|
going on. I can't spend hours digging through all the source<br>
|
|
code - I simply haven't time due to other commitments.<br>
|
|
<p>
|
|
Regards,<br>
|
|
<p>
|
|
<p>
|
|
Dave<br>
|
|
mail/sane/991121.tx sane<br>
|
|
+----------------------------------------------------------------------------+<br>
|
|
<i>| Dave Restall Internet Intranet Resourcing Consultancy Limited |</i><br>
|
|
<i>| Tel. +44 (0) 1287 653003 Mob. +44 (0) 973 831245 Fax. +44 (0) 1287 652546 |</i><br>
|
|
<i>| email : <a href="mailto:dave@iirc.net">dave@iirc.net</a> dave@restall.net Web : <a href="http://www.iirc.net">http://www.iirc.net</a> |</i><br>
|
|
+----------------------------------------------------------------------------+<br>
|
|
<i>| What we do not understand we do not possess. |</i><br>
|
|
<i>| -- Goethe |</i><br>
|
|
+----------------------------------------------------------------------------+<br>
|
|
<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="0199.html">Larry Snyder: "Re: Problem with SANE and SCSI scanner"</a>
|
|
<li> <b>Previous message:</b> <a href="0197.html">Laura DeWitt: "Problem with SANE and SCSI scanner"</a>
|
|
<!-- nextthread="start" -->
|
|
<li> <b>Next in thread:</b> <a href="0202.html">Oliver Rauch: "Re: Backend development problems."</a>
|
|
<li> <b>Reply:</b> <a href="0202.html">Oliver Rauch: "Re: Backend development problems."</a>
|
|
<!-- reply="end" -->
|
|
</ul>
|