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

Function runtime_control_request_decode

src/daemon/runtime.c:1441–1449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1439}
1440
1441static bool runtime_control_request_decode(const uint8_t *payload, uint32_t length,
1442 char build_out[CBM_DAEMON_BUILD_FINGERPRINT_SIZE]) {
1443 if (!payload || length != CBM_DAEMON_CONTROL_REQUEST_SIZE ||
1444 payload[CBM_DAEMON_CONTROL_REQUEST_SIZE - 1U] != 0U) {
1445 return false;
1446 }
1447 memcpy(build_out, payload, CBM_DAEMON_BUILD_FINGERPRINT_SIZE);
1448 return strlen(build_out) == CBM_DAEMON_BUILD_FINGERPRINT_SIZE - 1U;
1449}
1450
1451static void runtime_control_collect_clients_locked(cbm_daemon_runtime_service_t *service,
1452 cbm_daemon_runtime_worker_t *except,

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected