h->scan_status->current_image_number = 1;
h->scan_status->available_images = 0;
h->scan_status->downloaded_images = 0;
- h->scan_status->complete_scanned = false;
+ h->scan_status->completed = false;
h->read_info->scan_started = false;
h->read_info->cancel = false;
h->read_info->read_size = 0;
h->scan_status->current_image_number = 1;
h->scan_status->available_images = 0;
h->scan_status->downloaded_images = 0;
- h->scan_status->complete_scanned = false;
+ h->scan_status->completed = false;
h->read_info->scan_started = false;
h->read_info->cancel = false;
h->read_info->read_size = 0;
status_value_obj = json_object_object_get(status_obj, "State");
const char* scanner_state = json_object_get_string(status_value_obj);
if (strcmp(scanner_state, "Scanning") != 0)
- h->scan_status->complete_scanned = true;
+ h->scan_status->completed = true;
json_object_put(status_resp_obj);
status_resp_obj = NULL;
kds_s2000w_handler_delete_current_image(h);
h->scan_status->current_image_number++;
- if (h->scan_status->complete_scanned) {
+ if (h->scan_status->completed) {
kds_s2000w_handler_stop_scan(h);
return SANE_STATUS_GOOD;
}
kds_s2000w_handler_get_current_scan_status(h);
- if (h->scan_status->complete_scanned) {
+ if (h->scan_status->completed) {
kds_s2000w_debug_printf(DEBUG, "scan completed");
kds_s2000w_handler_reset(h);
return;
int result = sane_kds_s2000w_net_start(h);
assert_int_equal(result, SANE_STATUS_GOOD);
- assert_false(h->scan_status->complete_scanned);
+ assert_false(h->scan_status->completed);
json_object_put(h->current_scanner_config);
h->current_scanner_config = NULL;
int result = sane_kds_s2000w_net_start(h);
assert_int_equal(result, SANE_STATUS_GOOD);
- assert_false(h->scan_status->complete_scanned);
+ assert_false(h->scan_status->completed);
json_object_put(h->current_scanner_config);
h->current_scanner_config = NULL;
int result = sane_kds_s2000w_net_start(h);
assert_int_equal(result, SANE_STATUS_GOOD);
- assert_true(h->scan_status->complete_scanned);
+ assert_true(h->scan_status->completed);
json_object_put(h->current_scanner_config);
h->current_scanner_config = NULL;
int32_t result = sane_kds_s2000w_net_start(h);
assert_int_equal(result, SANE_STATUS_GOOD);
- assert_true(h->scan_status->complete_scanned);
+ assert_true(h->scan_status->completed);
json_object_put(h->current_scanner_config);
h->current_scanner_config = NULL;
sane_kds_s2000w_net_cancel(h);
assert_false(h->read_info->cancel);
- assert_false(h->scan_status->complete_scanned);
+ assert_false(h->scan_status->completed);
kds_s2000w_client_response_free(resp_status);
resp_status = NULL;
sane_kds_s2000w_net_cancel(h);
assert_false(h->read_info->cancel);
- assert_false(h->scan_status->complete_scanned);
+ assert_false(h->scan_status->completed);
kds_s2000w_client_response_free(resp_status);
resp_status = NULL;