| 1478 | } |
| 1479 | |
| 1480 | static struct plugin_option *find_opt(struct plugin *plugin, const char *name) |
| 1481 | { |
| 1482 | for (size_t i = 0; i < tal_count(plugin->opts); i++) { |
| 1483 | if (streq(plugin->opts[i].name, name)) |
| 1484 | return &plugin->opts[i]; |
| 1485 | } |
| 1486 | return NULL; |
| 1487 | } |
| 1488 | |
| 1489 | static const char **json_to_apilist(const tal_t *ctx, const char *buffer, const jsmntok_t *tok) |
| 1490 | { |
no outgoing calls
no test coverage detected