mh wrote:
> Yes, I know, and I'm sure it would work this way, *but* it's also a hack:
> A SANE_STATUS_NO_DOCS is an status code and should probably not be abused
> to solve this problem.
This is why the status code does exist. I think it does not make a
difference here if the scanner scans a new page, the backside of a page
or gets the image from memory. It is not a hack.
> The graphical frontends normally inform the user, if a sane_read() returns
> SANE_STATUS_NO_DOCS.
When XSane runs in ADF mode, it does print the error message "no docs"
when the first sane_start returns with SANE_STATUS_NO_DOCS.
When there is at least one page scanned XSane does print a message
"# pages scanned".
Bye
Oliver
-- Homepage: http://www.rauch-domain.de sane-umax: http://www.rauch-domain.de/sane-umax xsane: http://www.xsane.org E-Mail: mailto:Oliver.Rauch@rauch-domain.de-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
This archive was generated by hypermail 2b29 : Thu Mar 01 2001 - 11:29:15 PST