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

Function gm_find

src/store/graph_mem.c:121–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119/* ── Registry (caller holds the mutex) ───────────────────────────── */
120
121static cbm_graph_mem_t *gm_find(const char *path, const char *version) {
122 for (cbm_graph_mem_t *g = g_layers; g; g = g->next) {
123 if (strcmp(g->path, path) == 0 && strcmp(g->version, version) == 0) {
124 return g;
125 }
126 }
127 return NULL;
128}
129
130static void gm_unlink(cbm_graph_mem_t *g) {
131 for (cbm_graph_mem_t **p = &g_layers; *p; p = &(*p)->next) {

Callers 1

cbm_graph_mem_acquireFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected