|
SANEI 1.4.0.35-77728
|
Convenience macros and function declarations for backends. More...
Go to the source code of this file.
Public macros and functions | |
| #define | __sane_unused__ |
| Mark parameters as potentially unused. | |
| #define | NELEMS(a) |
| Return number of elements of an array. | |
| #define | STRINGIFY1(x) |
| Mark parameters as potentially unused. | |
| #define | STRINGIFY(x) |
| Turn parameter into string. | |
| #define | PASTE1(x, y) |
| Mark parameters as potentially unused. | |
| #define | PASTE(x, y) |
| Concatenate parameters. | |
| SANE_Status | sanei_check_value (const SANE_Option_Descriptor *opt, void *value) |
| Check the constraints of a SANE option. More... | |
| 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. More... | |
Convenience macros and function declarations for backends.
| SANE_Status sanei_check_value | ( | const SANE_Option_Descriptor * | opt, |
| void * | value | ||
| ) |
Check the constraints of a SANE option.
| opt | option to check |
| value | value of the 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.
Depending on the type of the option and constraint, value is modified to fit inside constraint.
| opt | option to check |
| value | value of the option |
| info | info is set to SANE_INFO_INEXACT if value was changed |