[sane-standard] Use option name instead of index

Étienne Bersac bersace03 at laposte.net
Wed Jan 17 21:11:34 CET 2007


Hi,

In SANE 1, frontend has to list almost all options in order to build a
relation table of index -> option_name (or use a struct like xsane).

I suggest to use directly option name (SANE_String) as referer.

This imply also that, instead of a "option-count" option, we provide a
sane_device_list_options (handle) call which retourn a NULL terminated
array of SANE_Option_Descriptor. Then, this make sense to use Macro for
Well-Known option name.

As a summary :

      * Define sane_device_list_options (handle) which return a NULL
        terminated array of SANE_Option_Descriptor
      * Use string instead of integer to refer options
      * Define well know option macr (e.g. SANE_OPTION_RESOLUTION
        "resolution", …).

Again, that's just an idea. Please comment.

Étienne.
-- 
Verso l'Alto !
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url : http://lists.alioth.debian.org/pipermail/sane-standard/attachments/20070117/1b7d9514/attachment.pgp


More information about the sane-standard mailing list