| 412 | } |
| 413 | |
| 414 | static void add_deps(const char ***arr, |
| 415 | const char *buffer, |
| 416 | const jsmntok_t *arrtok) |
| 417 | { |
| 418 | const jsmntok_t *t; |
| 419 | size_t i; |
| 420 | |
| 421 | if (!arrtok) |
| 422 | return; |
| 423 | |
| 424 | json_for_each_arr(i, t, arrtok) |
| 425 | tal_arr_expand(arr, json_strdup(*arr, buffer, t)); |
| 426 | } |
| 427 | |
| 428 | void plugin_hook_add_deps(struct plugin_hook *hook, |
| 429 | struct plugin *plugin, |
no test coverage detected