current_state* kds_s2000w_handler_open();
void kds_s2000w_handler_close();
+current_state* kds_s2000w_handler_current_state();
void kds_s2000w_handler_get_option(int option, void* value);
void kds_s2000w_handler_set_option(int option, void* value);
void kds_s2000w_handler_set_option_auto(int option);
const SANE_Option_Descriptor* _sane_kds_s2000w_net_get_option_descriptor(
SANE_Handle handle, SANE_Int option)
{
+ current_state* state = kds_s2000w_handler_current_state();
if (option == 0) {
- optionDescripor->name = "";
+ optionDescripor->name = "count of options";
optionDescripor->title = "count of options";
optionDescripor->desc = "count of options";
- optionDescripor->type = SANE_TYPE_INT;
+ optionDescripor->type = state->type;
optionDescripor->unit = SANE_UNIT_NONE;
- optionDescripor->size = sizeof(SANE_Int);
+ optionDescripor->size = state->size;
optionDescripor->cap = 0;
optionDescripor->constraint_type = SANE_CONSTRAINT_NONE;
optionDescripor->constraint.string_list = NULL;