| 549 | } |
| 550 | |
| 551 | static void add_deps(const char ***arr, |
| 552 | const char *buffer, |
| 553 | const jsmntok_t *arrtok) |
| 554 | { |
| 555 | const jsmntok_t *t; |
| 556 | size_t i; |
| 557 | |
| 558 | if (!arrtok) |
| 559 | return; |
| 560 | |
| 561 | json_for_each_arr(i, t, arrtok) |
| 562 | tal_arr_expand(arr, json_strdup(*arr, buffer, t)); |
| 563 | } |
| 564 | |
| 565 | void plugin_hook_add_deps(struct plugin_hook *hook, |
| 566 | struct plugin *plugin, |
no test coverage detected