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

Function cbm_progress_sink_fn

src/cli/progress_sink.c:203–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201enum { HANDLER_COUNT = sizeof(handlers) / sizeof(handlers[0]) };
202
203void cbm_progress_sink_fn(const char *line) {
204 if (!line || !s_out) {
205 return;
206 }
207 char msg[CBM_SZ_64] = {0};
208 if (!extract_kv(line, "msg", msg, (int)sizeof(msg))) {
209 return;
210 }
211 for (int i = 0; i < HANDLER_COUNT; i++) {
212 if (strcmp(msg, handlers[i].msg) == 0) {
213 handlers[i].handler(line);
214 return;
215 }
216 }
217}

Callers

nothing calls this directly

Calls 1

extract_kvFunction · 0.85

Tested by

no test coverage detected