| 119 | /* ── Registry (caller holds the mutex) ───────────────────────────── */ |
| 120 | |
| 121 | static 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 | |
| 130 | static void gm_unlink(cbm_graph_mem_t *g) { |
| 131 | for (cbm_graph_mem_t **p = &g_layers; *p; p = &(*p)->next) { |
no outgoing calls
no test coverage detected