[sane-devel] List of all possible options

Henning Meier-Geinitz henning@meier-geinitz.de
Thu, 2 Jun 2005 19:09:39 +0200


Hi,

On Thu, Jun 02, 2005 at 11:45:35AM +0530, Mohit Kumar wrote:
> I am implementing an interface to read data from scanner and was
> wondering if anybody on the list is aware of any document that has a
> complete list of options for scanners.

No, and such a document just can't exist. 

> What I mean is that does SANE anywhere keeps a list of all the
> possible options, the "keywords" through which they are read and so
> on.

Each backend has it's own list of options. While some or even most
options are common (well-known options), some really depend on the
scanner.

> I had gone through Chapter 4.5 of SANE document and it also mentions
> Well Known options.

There are also some more definitions for commonly used options in
include/sane/saneopts.h.

> Probably there could be a list of all options. The reason I require
> this is I can know the keywords on which the comparison needs to be
> done to know whether that option is supported or not.

Why do you need this? This is nor how SANE works. You ask the backend
for its options and than provide them to the user. Only for the
options the application/frontend itsself needs to know about, you need
to have a hardcoded name. Typical examples are resolution and geometry
options that are used for preview windows.

Bye,
  Henning