| 1165 | } |
| 1166 | |
| 1167 | static void application_record_attempt(const application_attempt_t *attempt, |
| 1168 | cbm_index_worker_result_t *last_result, |
| 1169 | bool *have_last_result, |
| 1170 | char last_log[APPLICATION_PATH_CAP]) { |
| 1171 | *last_result = attempt->result; |
| 1172 | last_result->response = NULL; |
| 1173 | *have_last_result = attempt->has_result; |
| 1174 | last_log[0] = '\0'; |
| 1175 | if (attempt->log_path[0]) { |
| 1176 | (void)snprintf(last_log, APPLICATION_PATH_CAP, "%s", attempt->log_path); |
| 1177 | } |
| 1178 | } |
| 1179 | |
| 1180 | static void application_record_cancelled(cbm_index_worker_result_t *last_result, |
| 1181 | bool *have_last_result, |
no outgoing calls
no test coverage detected