[sane-devel] option size = 0 allowed ?
Michael Herder
crapsite@gmx.net
Wed, 18 Dec 2002 07:30:42 +0100
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