| 1507 | } |
| 1508 | |
| 1509 | static bool runtime_worker_handle_unsubscribe(cbm_daemon_runtime_worker_t *worker, |
| 1510 | const uint8_t *payload, uint32_t length) { |
| 1511 | if (!runtime_worker_service_running(worker) || !payload || length != UNSUBSCRIBE_REQUEST_SIZE) { |
| 1512 | return false; |
| 1513 | } |
| 1514 | cbm_daemon_subscription_id_t subscription_id = runtime_get_u64(payload); |
| 1515 | bool removed = cbm_daemon_job_unsubscribe(worker->service->coordinator, worker->client_id, |
| 1516 | subscription_id); |
| 1517 | return runtime_worker_send_status(worker, CBM_DAEMON_RUNTIME_OP_JOB_UNSUBSCRIBE, removed); |
| 1518 | } |
| 1519 | |
| 1520 | static void *runtime_application_worker(void *opaque) { |
| 1521 | cbm_daemon_runtime_worker_t *worker = opaque; |
no test coverage detected