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

Function compare_node_json

src/mcp/mcp.c:3471–3481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3469}
3470
3471static yyjson_mut_val *compare_node_json(yyjson_mut_doc *doc,
3472 const cbm_graph_node_identity_t *node) {
3473 yyjson_mut_val *object = yyjson_mut_obj(doc);
3474 if (!object ||
3475 !compare_add_identity_string(doc, object, "qualified_name", node->qualified_name) ||
3476 !compare_add_identity_string(doc, object, "label", node->label) ||
3477 !compare_add_identity_string(doc, object, "file_path", node->file_path)) {
3478 return NULL;
3479 }
3480 return object;
3481}
3482
3483static bool compare_append_item(compare_response_t *response, compare_result_set_t *set,
3484 yyjson_mut_doc *item_doc, yyjson_mut_val *item) {

Callers 2

compare_node_callbackFunction · 0.85
compare_edge_callbackFunction · 0.85

Calls 1

Tested by

no test coverage detected