| 788 | } |
| 789 | |
| 790 | static bool ha_envelope_succeeded(const char *envelope) { |
| 791 | yyjson_doc *doc = envelope ? yyjson_read(envelope, strlen(envelope), 0) : NULL; |
| 792 | if (!doc) { |
| 793 | return false; |
| 794 | } |
| 795 | yyjson_val *root = yyjson_doc_get_root(doc); |
| 796 | yyjson_val *error = yyjson_obj_get(root, "isError"); |
| 797 | bool succeeded = !(error && yyjson_is_true(error)); |
| 798 | yyjson_doc_free(doc); |
| 799 | return succeeded; |
| 800 | } |
| 801 | |
| 802 | static bool ha_canonical_path(const char *input, char *output, size_t output_size) { |
| 803 | if (!input || !output || output_size == 0U || !cbm_hook_path_is_abs(input)) { |
no outgoing calls
no test coverage detected