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

Function plugin_opt_find

lightningd/plugin.c:1352–1363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1350}
1351
1352static struct plugin_opt *plugin_opt_find(struct plugin *plugin,
1353 const char *name, size_t namelen)
1354{
1355 struct plugin_opt *opt;
1356
1357 list_for_each(&plugin->plugin_opts, opt, list) {
1358 /* Trim the `--` that we added before */
1359 if (memeqstr(name, namelen, opt->name + 2))
1360 return opt;
1361 }
1362 return NULL;
1363}
1364
1365/* start command might have included plugin-specific parameters */
1366static const char *plugin_add_params(struct plugin *plugin)

Callers 1

plugin_add_paramsFunction · 0.85

Calls 1

memeqstrFunction · 0.85

Tested by

no test coverage detected