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