return descriptor;
}
-SANE_Option_Descriptor _kds_s2000w_option_descriptor_max_document_length()
-{
- debug_printf(ALL, "kds_s2000w_option_descriptor_max_document_length");
-
- constraint_max_document_length = malloc(sizeof(char*) * 2);
- constraint_max_document_length[0] = "#NoPrimaryControl#";
- constraint_max_document_length[1] = NULL;
-
- SANE_Option_Descriptor descriptor = {
- "maxdocumentlength",
- "maxdocumentlength",
- "maxdocumentlength",
- SANE_TYPE_INT,
- SANE_UNIT_NONE,
- sizeof(SANE_Int),
- SANE_CAP_SOFT_DETECT,
- SANE_CONSTRAINT_STRING_LIST,
- {.string_list = constraint_max_document_length}
- };
-
- return descriptor;
-}
-
SANE_Option_Descriptor _kds_s2000w_option_descriptor_scan_source()
{
debug_printf(ALL, "kds_s2000w_option_descriptor_scan_source");