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

Function runtime_control_request_decode

src/daemon/runtime.c:1779–1787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1777}
1778
1779static bool runtime_control_request_decode(const uint8_t *payload, uint32_t length,
1780 char build_out[CBM_DAEMON_BUILD_FINGERPRINT_SIZE]) {
1781 if (!payload || length != CBM_DAEMON_CONTROL_REQUEST_SIZE ||
1782 payload[CBM_DAEMON_CONTROL_REQUEST_SIZE - 1U] != 0U) {
1783 return false;
1784 }
1785 memcpy(build_out, payload, CBM_DAEMON_BUILD_FINGERPRINT_SIZE);
1786 return strlen(build_out) == CBM_DAEMON_BUILD_FINGERPRINT_SIZE - 1U;
1787}
1788
1789static void runtime_control_collect_clients_locked(cbm_daemon_runtime_service_t *service,
1790 cbm_daemon_runtime_worker_t *except,

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected