Brad Sawatzky <[EMAIL PROTECTED]> wrote:

Hi,

> What is the intent of duplicating s->opt into s->local_opt?  If it is to
> provide a stable local version of the scanner descriptors then shouldn't

Per the SANE standard, the descriptors have to remain available at the
same location until the device is closed. If it wasn't the case, it'd
be a major pain for the frontends to keep track of the options. (it
could be done with more API calls, though, but that's added complexity
for no benefit)

> the .constraint union (*string_list, *word_list, or *range) be duplicated
> as well?

Nope. Whenever that changes, the backend instructs the frontend to
reload the options. The constraints can and do change depending on
what options you set. Also the type of constraint can change
(resolution list vs. free resolution).

JB.

-- 
 Julien BLACHE <[EMAIL PROTECTED]>  |  Debian, because code matters more 
 Debian & GNU/Linux Developer        |       <http://www.debian.org>
 Public key available on <http://www.jblache.org> - KeyID: F5D6 5169 
 GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169 



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to