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

Function root_containment_init

src/mcp/mcp.c:12776–12780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12774enum { ROOT_CONTAINMENT_INSIDE = 1, ROOT_CONTAINMENT_OUTSIDE = 2 };
12775
12776static void root_containment_init(root_containment_t *containment, const char *root_path) {
12777 containment->verdicts = NULL;
12778 containment->resolved = root_path && resolve_canonical_path(root_path, containment->canonical,
12779 sizeof(containment->canonical));
12780}
12781
12782static void root_containment_free_key(const char *key, void *value, void *userdata) {
12783 (void)value;

Callers 3

render_search_payloadFunction · 0.85
handle_search_codeFunction · 0.85

Calls 1

resolve_canonical_pathFunction · 0.85

Tested by

no test coverage detected