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

Function runtime_control_request_decode

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

Source from the content-addressed store, hash-verified

1447}
1448
1449static bool runtime_control_request_decode(const uint8_t *payload, uint32_t length,
1450 char build_out[CBM_DAEMON_BUILD_FINGERPRINT_SIZE]) {
1451 if (!payload || length != CBM_DAEMON_CONTROL_REQUEST_SIZE ||
1452 payload[CBM_DAEMON_CONTROL_REQUEST_SIZE - 1U] != 0U) {
1453 return false;
1454 }
1455 memcpy(build_out, payload, CBM_DAEMON_BUILD_FINGERPRINT_SIZE);
1456 return strlen(build_out) == CBM_DAEMON_BUILD_FINGERPRINT_SIZE - 1U;
1457}
1458
1459static void runtime_control_collect_clients_locked(cbm_daemon_runtime_service_t *service,
1460 cbm_daemon_runtime_worker_t *except,

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected