MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / runtime_control_request_decode

Function runtime_control_request_decode

src/daemon/runtime.c:1480–1488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1478}
1479
1480static bool runtime_control_request_decode(const uint8_t *payload, uint32_t length,
1481 char build_out[CBM_DAEMON_BUILD_FINGERPRINT_SIZE]) {
1482 if (!payload || length != CBM_DAEMON_CONTROL_REQUEST_SIZE ||
1483 payload[CBM_DAEMON_CONTROL_REQUEST_SIZE - 1U] != 0U) {
1484 return false;
1485 }
1486 memcpy(build_out, payload, CBM_DAEMON_BUILD_FINGERPRINT_SIZE);
1487 return strlen(build_out) == CBM_DAEMON_BUILD_FINGERPRINT_SIZE - 1U;
1488}
1489
1490static void runtime_control_collect_clients_locked(cbm_daemon_runtime_service_t *service,
1491 cbm_daemon_runtime_worker_t *except,

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected