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

Function read_snapshot

tests/test_runtime_settings.c:62–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 return NULL;
61}
62static yyjson_doc *read_snapshot(const char *path) {
63 char *json = cbm_runtime_settings_get_json(path);
64 yyjson_doc *document = json ? yyjson_read(json, strlen(json), 0) : NULL;
65 cbm_free(CBM_MEM_CLASS_OTHER, json);
66 return document;
67}
68static char *apply(const char *path, const char *changes, int *status) {
69 yyjson_doc *before = read_snapshot(path);
70 if (!before)

Callers 3

applyFunction · 0.85
settings_revisionFunction · 0.85

Calls 2

cbm_freeFunction · 0.85

Tested by

no test coverage detected