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

Function application_jsonrpc_success

src/daemon/application.c:2003–2010  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2001}
2002
2003static bool application_jsonrpc_success(const char *response) {
2004 yyjson_doc *document = response ? yyjson_read(response, strlen(response), 0) : NULL;
2005 yyjson_val *root = document ? yyjson_doc_get_root(document) : NULL;
2006 bool success = yyjson_is_obj(root) && yyjson_obj_get(root, "result") != NULL &&
2007 yyjson_obj_get(root, "error") == NULL;
2008 yyjson_doc_free(document);
2009 return success;
2010}
2011
2012static void application_update_notice_inject(cbm_daemon_application_session_t *session,
2013 char **response_io) {

Callers 1

application_mcp_requestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected