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

Function plugin_opt_find

lightningd/plugin.c:1512–1522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1510}
1511
1512static struct plugin_opt *plugin_opt_find(const struct plugin *plugin,
1513 const char *name)
1514{
1515 struct plugin_opt *opt;
1516
1517 list_for_each(&plugin->plugin_opts, opt, list) {
1518 if (streq(opt->name + 2, name))
1519 return opt;
1520 }
1521 return NULL;
1522}
1523
1524/* Find the plugin_opt for this ot */
1525static 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