| 2001 | } |
| 2002 | |
| 2003 | static 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 | |
| 2012 | static void application_update_notice_inject(cbm_daemon_application_session_t *session, |
| 2013 | char **response_io) { |
no outgoing calls
no test coverage detected