[sane-devel] SANE 2 proposal : sane_get_device_descriptor()

m. allan noah anoah at pfeiffer.edu
Sat Aug 19 23:27:30 UTC 2006


On Sat, 19 Aug 2006, Étienne Bersac wrote:

> Hello,
>
> Using SANE 1, application can retreive informations only about detected
> devices by sane_get_devices(). That would be nice if SANE allow to
> retreive such data for any device name.

i do not see the advantage to this? you are just adding an extra function 
call, to get the same data you can get now with one?

can you explain why this is good?

allan

>
> I suggest :
>      * make sane_get_devices() returns a list of device name (e.g. a
>        NULL terminated SANE_String_Const array);
>      * create const SANE_Device_Descriptor*
>        sane_get_device_descriptor(SANE_String_Const name) wich return
>        the device "name" descriptor.
>      * Drop the name field of SANE_Device_Descriptor.
>
> I wish you find this suggestion useful.
>
> Étienne.
>

-- 
"so don't tell us it can't be done, putting down what you don't know.
money isn't our god, integrity will free our souls" - Max Cavalera


More information about the sane-devel mailing list