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

Function find_opt

plugins/libplugin.c:1480–1487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

handle_initFunction · 0.70
ld_command_handleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected