[sane-devel] how to detect the scan_source

Oliver Schirrmeister oschirr@abm.de
08 Nov 2002 14:07:36 +0100


Is there a way to detect if the user wants to scan with
the ADF or from flatbed? I've found SANE_NAME_SCAN_SOURCE
but the value of that option depends on the backend?

I'd like to write a tool like scanimage. The user can
select the scanner and the scansource. If flatbed is 
selected I want to scan one image only. If the ADF is
selected I want to scan as long the ADF is not empty.


Thanks

Oliver