| 585 | } |
| 586 | |
| 587 | static void json_add_keypath(struct json_out *jout, const char *fieldname, const char *path) |
| 588 | { |
| 589 | char **parts = tal_strsplit(tmpctx, path, "/", STR_EMPTY_OK); |
| 590 | |
| 591 | json_out_start(jout, fieldname, '['); |
| 592 | for (size_t i = 0; parts[i]; parts++) |
| 593 | json_out_addstr(jout, NULL, parts[i]); |
| 594 | json_out_end(jout, ']'); |
| 595 | } |
| 596 | |
| 597 | static bool rpc_scan_datastore(struct plugin *plugin, |
| 598 | const char *path, |
no test coverage detected