| 1488 | } |
| 1489 | |
| 1490 | static struct plugin_option *find_opt(struct plugin *plugin, const char *name) |
| 1491 | { |
| 1492 | for (size_t i = 0; i < tal_count(plugin->opts); i++) { |
| 1493 | if (streq(plugin->opts[i].name, name)) |
| 1494 | return &plugin->opts[i]; |
| 1495 | } |
| 1496 | return NULL; |
| 1497 | } |
| 1498 | |
| 1499 | static const char **json_to_apilist(const tal_t *ctx, const char *buffer, const jsmntok_t *tok) |
| 1500 | { |
no outgoing calls
no test coverage detected