[sane-devel] option size = 0 allowed ?

Michael Herder crapsite at gmx.net
Wed Dec 18 06:30:42 GMT 2002


Hi,
from the standard:
"Member size specifies the size of the option value (in bytes).
...
SANE_TYPE_INT, SANE_TYPE_FIXED: The size must be a positive integer multiple 
of the size of a SANE_Word. The option value is a vector of length
size/sizeof(SANE_Word)."

The umax backend defines an option "halftone pattern" with size 0. Is this 
allowed? 
Furthermore, the umax backend changes the option size later. IMHO, that at 
least isn't allowed, because only the availablity or value of an option may 
change.

bb
Michael



More information about the sane-devel mailing list