[sane-devel] Perl Bindings

Jeffrey Ratcliffe jeffrey.ratcliffe at gmail.com
Wed Oct 22 21:07:01 UTC 2008

2008/10/21 m. allan noah <kitno455 at gmail.com>:
> the option is a C-style array of values, not just a single value. lots
> of other backends do this too, search for GAMMA_VECTOR.

OK. I am with you now.


opt->type != SANE_TYPE_STRING && opt->size
             > (SANE_Int) sizeof (SANE_Word)

the only way for the frontend to tell that an array is expected?

I'm wondering about the best way to handle this in Perl, which doesn't
have sizeof().

I'm thinking that adding opt->max_vals might be best, as defining
something like SANE_Word_sizeof just feels hackish.



More information about the sane-devel mailing list