| 1201 | } |
| 1202 | |
| 1203 | static bool runtime_worker_send_frame(cbm_daemon_runtime_worker_t *worker, |
| 1204 | cbm_daemon_frame_type_t type, |
| 1205 | cbm_daemon_runtime_operation_t operation, const void *payload, |
| 1206 | uint32_t length) { |
| 1207 | if (!worker) { |
| 1208 | return false; |
| 1209 | } |
| 1210 | cbm_mutex_lock(&worker->send_mutex); |
| 1211 | bool sent = |
| 1212 | worker->connection && |
| 1213 | cbm_daemon_ipc_send_frame(worker->connection, type, (uint16_t)operation, payload, length); |
| 1214 | cbm_mutex_unlock(&worker->send_mutex); |
| 1215 | return sent; |
| 1216 | } |
| 1217 | |
| 1218 | static bool runtime_worker_send_status(cbm_daemon_runtime_worker_t *worker, |
| 1219 | cbm_daemon_runtime_operation_t operation, bool success) { |
no test coverage detected