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

Function plugin_opt_find

lightningd/plugin.c:1524–1534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1522}
1523
1524static struct plugin_opt *plugin_opt_find(const struct plugin *plugin,
1525 const char *name)
1526{
1527 struct plugin_opt *opt;
1528
1529 list_for_each(&plugin->plugin_opts, opt, list) {
1530 if (streq(opt->name + 2, name))
1531 return opt;
1532 }
1533 return NULL;
1534}
1535
1536/* Find the plugin_opt for this ot */
1537static struct plugin *plugin_opt_find_any(const struct plugins *plugins,

Callers 2

plugin_opt_find_anyFunction · 0.85
plugin_add_paramsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected