scan_status current_scan_status;
-void _get_current_metadata(void* handle)
+void _get_current_metadata(handler* h)
{
debug_printf(ALL, "get_current_metadata");
- handler* h = (handler*) handle;
resp = kds_s2000w_client_response_init();
kds_s2000w_client_get_metadata(h->sessionid, current_scan_status.current_image_number, resp);
if (resp->code != 200) {
sleep(1);
}
-void _delete_current_image(void* handle)
+void _delete_current_image(handler* h)
{
debug_printf(ALL, "delete_current_image");
- handler* h = (handler*) handle;
resp = kds_s2000w_client_response_init();
kds_s2000w_client_delete_image(h->sessionid, current_scan_status.current_image_number, resp);
kds_s2000w_client_response_free(resp);
sleep(1);
}
-void _download_current_image(void* handle)
+void _download_current_image(handler* h)
{
debug_printf(ALL, "download_current_image");
- handler* h = (handler*) handle;
if (image.size > 0) {
free(image.data);
image.data = NULL;
sleep(1);
}
-void _get_current_scan_status(void* handle)
+void _get_current_scan_status(handler* h)
{
debug_printf(ALL, "get_current_scan_status");
- handler* h = (handler*) handle;
json_object* status_resp_obj = NULL;
json_object* status_obj = NULL;
json_object* status_value_obj = NULL;