MCPcopy Create free account
hub / github.com/ElementsProject/lightning / find_opt

Function find_opt

plugins/libplugin.c:1490–1497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1488}
1489
1490static 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
1499static const char **json_to_apilist(const tal_t *ctx, const char *buffer, const jsmntok_t *tok)
1500{

Callers 2

handle_initFunction · 0.70
ld_command_handleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected