| 452 | } |
| 453 | |
| 454 | static char *opt_add_plugin(const char *arg, struct lightningd *ld) |
| 455 | { |
| 456 | struct plugin *p; |
| 457 | if (plugin_blacklisted(ld->plugins, arg)) { |
| 458 | log_info(ld->log, "%s: disabled via disable-plugin", arg); |
| 459 | return NULL; |
| 460 | } |
| 461 | p = plugin_register(ld->plugins, arg, NULL, false, NULL, NULL); |
| 462 | if (!p) |
| 463 | return tal_fmt(NULL, "Failed to register %s: %s", arg, strerror(errno)); |
| 464 | return NULL; |
| 465 | } |
| 466 | |
| 467 | static char *opt_disable_plugin(const char *arg, struct lightningd *ld) |
| 468 | { |
nothing calls this directly
no test coverage detected