Henning Meier-Geinitz wrote: > > Hi, > > On Thu, Nov 14, 2002 at 09:27:55AM +0100, John Doe wrote: > > Is there a list of all the adf scanner which supported by sane? > > There was a similar question about this topic some time ago. For a > response see: > http://www.mostang.com/pipermail/sane-devel/2002-November/004983.html > > You'll probably need to check the backend homepages. > > > Is there somebody how know how can I get a return code from scanimage > > in my c program? > > IIRC and completely untested: > > fork ... > exec ... > > waitpid (pid, &status) > > Examine the status with WIFEXITED(status) and WEXITSTATUS(status). > See manpages for details.
One should also catch stderr from the child process in order to get error messages like "ADF empty" or similar. Abel
