Re: May sane_init fail?

Petter Reinholdtsen (pere@hungry.com)
Mon, 3 May 1999 00:35:52 +0200

> What's the suggested return values for a backend/SANE version
> mismatch? I'm currently using SANE_STATUS_UNSUPPORTED (seems
> logical), but SANE_STATUS_INVAL could be used too.

Eh, the version_code parameter is supposed to be used to report the
backends version code, right?

The backend should not check the version present in the buffer, it
should store it's own version into the buffer.

If a frontend calls multiple backends using the same buffer, one
backends might get confused if the previous gave a different version
number.

> BTW, it seems that almost no backend checks the version number, and
> most backends distributed with 1.0.x are listed as version
> 0.something in the "supported scanners" webpage - not good.

The backend version number is unrelated to the sane distribution
version number.

-- 
##>  Petter Reinholdtsen <##    | pere@td.org.uit.no
 O-  <SCRIPT Language="Javascript">window.close()</SCRIPT>
http://www.hungry.com/~pere/    | Go Mozilla, go! Go!

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com