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

Function opt_add_plugin

lightningd/options.c:497–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495}
496
497static char *opt_add_plugin(const char *arg, struct lightningd *ld)
498{
499 struct plugin *p;
500 if (plugin_blacklisted(ld->plugins, arg)) {
501 log_info(ld->log, "%s: disabled via disable-plugin", arg);
502 return NULL;
503 }
504 p = plugin_register(ld->plugins, arg, NULL, false, NULL, NULL);
505 if (!p)
506 return tal_fmt(tmpctx, "Failed to register %s: %s", arg, strerror(errno));
507 return NULL;
508}
509
510static char *opt_disable_plugin(const char *arg, struct lightningd *ld)
511{

Callers

nothing calls this directly

Calls 3

plugin_blacklistedFunction · 0.85
log_infoClass · 0.85
plugin_registerFunction · 0.85

Tested by

no test coverage detected