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

Function plugins_send_getmanifest

lightningd/plugin.c:1744–1766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1742}
1743
1744bool plugins_send_getmanifest(struct plugins *plugins, const char *cmd_id)
1745{
1746 struct plugin *p, *next;
1747 bool sent = false;
1748
1749 /* Spawn the plugin processes before entering the io_loop */
1750 list_for_each_safe(&plugins->plugins, p, next, list) {
1751 const char *err;
1752
1753 if (p->plugin_state != UNCONFIGURED)
1754 continue;
1755 err = plugin_send_getmanifest(p, cmd_id);
1756 if (!err) {
1757 sent = true;
1758 continue;
1759 }
1760 if (plugins->startup)
1761 fatal("error starting plugin '%s': %s", p->cmd, err);
1762 plugin_kill(p, LOG_UNUSUAL, "%s", err);
1763 }
1764
1765 return sent;
1766}
1767
1768void plugins_init(struct plugins *plugins)
1769{

Callers 3

plugins_initFunction · 0.85
plugin_dynamic_startdirFunction · 0.85

Calls 3

plugin_send_getmanifestFunction · 0.85
plugin_killFunction · 0.85
fatalFunction · 0.70

Tested by

no test coverage detected