Q: Developing a backend

Vassilis Virvilis (vasvir@iit.nrcps.ariadne-t.gr)
Fri, 23 Jan 1998 20:51:18 +0200

Hello

test. Is this coming out? Hope so

A friend of mine gave me that to send over the Internet:

-------------------------------------------------------------------

OK I am developing one (SCSI) backend and I am in a very premature
state. I would like to ask some things in order to speed me up a little.

1
Does the below statement make any sense

c=SANE_UNFIX(a+b);

Is this somewhere close to c=SANE_UNFIX(a) + SANE_UNFIX(b);

which one should be used?

2
I noticed my sane_read is called with a buffer of 32768. Why is that?
Has anything to do with SCSI_SG_BUF (or whatever the name is).

3
Should be the sane_controlo_option Reentrant? If not how am I going to
handle complex dependancies without code doubling? I don't have this one
very clear in my mind. I will be more specific when I 'll have my code
handy...

4
My backend is based on sane-0.68. What issues must have in mind in order
to be most portable with the newer sane's. Does the API changed?

Milon FirikHs

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