148#define __sane_unused__ __attribute__((unused))
150#define __sane_unused__
154#define NELEMS(a) ((int)(sizeof (a) / sizeof (a[0])))
157#define STRINGIFY1(x) #x
159#define STRINGIFY(x) STRINGIFY1(x)
162#define PASTE1(x,y) x##y
164#define PASTE(x,y) PASTE1(x,y)
170 void * value, SANE_Word * info);
SANE_Status sanei_check_value(const SANE_Option_Descriptor *opt, void *value)
Check the constraints of a SANE option.
SANE_Status sanei_constrain_value(const SANE_Option_Descriptor *opt, void *value, SANE_Word *info)
Check the constraints of a SANE option and adjust its value if necessary.