Lines Matching refs:result
20 char *result; member
36 const char *path, *unit, *result; in match_job_removed() local
45 r = sd_bus_message_read(m, "uoss", &id, &path, &unit, &result); in match_job_removed()
57 (void) free_and_strdup(&d->result, empty_to_null(result)); in match_job_removed()
76 free(d->result); in bus_wait_for_jobs_free()
142 static int bus_job_get_service_result(BusWaitForJobs *d, char **result) { in bus_job_get_service_result() argument
147 assert(result); in bus_job_get_service_result()
162 result); in bus_job_get_service_result()
165 static void log_job_error_with_service_result(const char* service, const char *result, const char* … in log_job_error_with_service_result() argument
170 const char *result, *explanation; in log_job_error_with_service_result() member
194 if (!isempty(result)) { in log_job_error_with_service_result()
198 if (streq(result, explanations[i].result)) in log_job_error_with_service_result()
224 if (streq_ptr(result, "start-limit")) in log_job_error_with_service_result()
234 assert(d->result); in check_wait_response()
237 if (streq(d->result, "canceled")) in check_wait_response()
239 else if (streq(d->result, "timeout")) in check_wait_response()
241 else if (streq(d->result, "dependency")) in check_wait_response()
243 else if (streq(d->result, "invalid")) in check_wait_response()
245 else if (streq(d->result, "assert")) in check_wait_response()
247 else if (streq(d->result, "unsupported")) in check_wait_response()
249 else if (streq(d->result, "collected")) in check_wait_response()
251 else if (streq(d->result, "once")) in check_wait_response()
253 else if (!STR_IN_SET(d->result, "done", "skipped")) { in check_wait_response()
256 _cleanup_free_ char *result = NULL; in check_wait_response() local
259 q = bus_job_get_service_result(d, &result); in check_wait_response()
263 log_job_error_with_service_result(d->name, result, extra_args); in check_wait_response()
269 if (STR_IN_SET(d->result, "canceled", "collected")) in check_wait_response()
271 else if (streq(d->result, "timeout")) in check_wait_response()
273 else if (streq(d->result, "dependency")) in check_wait_response()
275 else if (streq(d->result, "invalid")) in check_wait_response()
277 else if (streq(d->result, "assert")) in check_wait_response()
279 else if (streq(d->result, "unsupported")) in check_wait_response()
281 else if (streq(d->result, "once")) in check_wait_response()
283 else if (STR_IN_SET(d->result, "done", "skipped")) in check_wait_response()
287 … "Unexpected job result, assuming server side newer than us: %s", d->result); in check_wait_response()
302 if (d->name && d->result) { in bus_wait_for_jobs()
310 "Got result %s/%m for job %s", d->result, d->name); in bus_wait_for_jobs()
314 d->result = mfree(d->result); in bus_wait_for_jobs()