| 2454 | } |
| 2455 | |
| 2456 | static bool application_jsonrpc_success(const char *response) { |
| 2457 | yyjson_doc *document = response ? yyjson_read(response, strlen(response), 0) : NULL; |
| 2458 | yyjson_val *root = document ? yyjson_doc_get_root(document) : NULL; |
| 2459 | bool success = yyjson_is_obj(root) && yyjson_obj_get(root, "result") != NULL && |
| 2460 | yyjson_obj_get(root, "error") == NULL; |
| 2461 | yyjson_doc_free(document); |
| 2462 | return success; |
| 2463 | } |
| 2464 | |
| 2465 | static void application_update_notice_inject(cbm_daemon_application_session_t *session, |
| 2466 | char **response_io) { |
no outgoing calls
no test coverage detected