_kds_s2000w_handler_opts_write_int_value(value_object, value);
break;
case 35:
- value_object = json_object_object_get(config, "MaxDocumentLength");
+ value_object = json_object_object_get(config, "HoleFill");
_kds_s2000w_handler_opts_write_int_value(value_object, value);
break;
case 36:
_kds_s2000w_handler_opts_write_string_value(value_object, value);
break;
case 39:
- value_object = json_object_object_get(config, "HoleFill");
+ value_object = json_object_object_get(config, "MaxDocumentLength");
_kds_s2000w_handler_opts_write_int_value(value_object, value);
break;
case 40:
_kds_s2000w_handler_opts_write_int_value_to_json(value_object, value);
break;
case 35:
- value_object = json_object_object_get(config, "MaxDocumentLength");
+ value_object = json_object_object_get(config, "HoleFill");
_kds_s2000w_handler_opts_write_int_value_to_json(value_object, value);
break;
case 36:
_kds_s2000w_handler_opts_write_string_value_to_json(value_object, value);
break;
case 39:
- value_object = json_object_object_get(config, "HoleFill");
+ value_object = json_object_object_get(config, "MaxDocumentLength");
_kds_s2000w_handler_opts_write_int_value_to_json(value_object, value);
break;
case 40:
descriptor_array[32] = _kds_s2000w_option_descriptor_image_processing_group();
descriptor_array[33] = _kds_s2000w_option_descriptor_skip_blank_pages();
descriptor_array[34] = _kds_s2000w_option_descriptor_skip_blank_page_content();
- descriptor_array[35] = _kds_s2000w_option_descriptor_max_document_length();
+ descriptor_array[35] = _kds_s2000w_option_descriptor_hole_fill();
descriptor_array[36] = _kds_s2000w_option_descriptor_document_feeder_timeout();
descriptor_array[37] = _kds_s2000w_option_descriptor_multifeed_response();
descriptor_array[38] = _kds_s2000w_option_descriptor_image_border();
- descriptor_array[39] = _kds_s2000w_option_descriptor_hole_fill();
+ descriptor_array[39] = _kds_s2000w_option_descriptor_max_document_length();
descriptor_array[40] = _kds_s2000w_option_descriptor_document_feeder_timeout_response();
descriptor_array[41] = _kds_s2000w_option_descriptor_post_scan_rotation();
descriptor_array[42] = _kds_s2000w_option_descriptor_edge_fill();
sane_kds_s2000w_net_control_option(h, 35, SANE_ACTION_GET_VALUE, &value, NULL);
- assert_int_equal(value, 140);
+ assert_int_equal(value, 0);
kds_s2000w_handler_free(h);
h = NULL;
sane_kds_s2000w_net_control_option(h, 39, SANE_ACTION_GET_VALUE, &value, NULL);
- assert_int_equal(value, 0);
+ assert_int_equal(value, 140);
kds_s2000w_handler_free(h);
h = NULL;
{
SANE_Option_Descriptor* option = kds_s2000w_option_descriptors_get(35);
- assert_string_equal("max-document-length", option->name);
- assert_string_equal("Max document length", option->title);
- assert_string_equal("Max document length", option->desc);
- assert_int_equal(SANE_TYPE_INT, option->type);
+ assert_string_equal("hole-fill", option->name);
+ assert_string_equal("Hole Fill", option->title);
+ assert_string_equal("Hole Fill", option->desc);
+ assert_int_equal(SANE_TYPE_BOOL, option->type);
assert_int_equal(SANE_UNIT_NONE, option->unit);
- assert_int_equal(sizeof(SANE_Int), option->size);
+ assert_int_equal(sizeof(SANE_Bool), option->size);
assert_int_equal(SANE_CAP_SOFT_DETECT | SANE_CAP_SOFT_SELECT | SANE_CAP_ADVANCED, option->cap);
- assert_int_equal(SANE_CONSTRAINT_RANGE, option->constraint_type);
- assert_int_equal(option->constraint.range->min, 25);
- assert_int_equal(option->constraint.range->max, 400);
- assert_int_equal(option->constraint.range->quant, 1);
+ assert_int_equal(SANE_CONSTRAINT_NONE, option->constraint_type);
}
void kds_s2000w_option_get_descriptor_thirdysix_test()
{
SANE_Option_Descriptor* option = kds_s2000w_option_descriptors_get(39);
- assert_string_equal("hole-fill", option->name);
- assert_string_equal("Hole Fill", option->title);
- assert_string_equal("Hole Fill", option->desc);
- assert_int_equal(SANE_TYPE_BOOL, option->type);
+ assert_string_equal("max-document-length", option->name);
+ assert_string_equal("Max document length", option->title);
+ assert_string_equal("Max document length", option->desc);
+ assert_int_equal(SANE_TYPE_INT, option->type);
assert_int_equal(SANE_UNIT_NONE, option->unit);
- assert_int_equal(sizeof(SANE_Bool), option->size);
+ assert_int_equal(sizeof(SANE_Int), option->size);
assert_int_equal(SANE_CAP_SOFT_DETECT | SANE_CAP_SOFT_SELECT | SANE_CAP_ADVANCED, option->cap);
- assert_int_equal(SANE_CONSTRAINT_NONE, option->constraint_type);
+ assert_int_equal(SANE_CONSTRAINT_RANGE, option->constraint_type);
+ assert_int_equal(option->constraint.range->min, 25);
+ assert_int_equal(option->constraint.range->max, 400);
+ assert_int_equal(option->constraint.range->quant, 1);
}
void kds_s2000w_option_get_descriptor_fourty_test()