option_descriptors[option].name = "scanside";
option_descriptors[option].title = "scanside";
option_descriptors[option].desc = "scanside";
- option_descriptors[option].cap = SANE_CAP_SOFT_DETECT;
- option_descriptors[option].constraint_type = SANE_CONSTRAINT_NONE;
- option_descriptors[option].constraint.string_list = NULL;
+ option_descriptors[option].cap = SANE_CAP_SOFT_DETECT | SANE_CAP_SOFT_SELECT;
+ option_descriptors[option].constraint_type = SANE_CONSTRAINT_STRING_LIST;
+ SANE_String_Const* constraint_strings = malloc(sizeof(char*) * 3);
+ constraint_strings[0] = "Simplex";
+ constraint_strings[1] = "Duplex";
+ constraint_strings[2] = NULL;
+ option_descriptors[option].constraint.string_list = constraint_strings;
break;
case 3:
option_descriptors[option].name = "colormode";