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

Function plugins_send_getmanifest

lightningd/plugin.c:2017–2039  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2015}
2016
2017bool plugins_send_getmanifest(struct plugins *plugins, const char *cmd_id)
2018{
2019 struct plugin *p, *next;
2020 bool sent = false;
2021
2022 /* Spawn the plugin processes before entering the io_loop */
2023 list_for_each_safe(&plugins->plugins, p, next, list) {
2024 const char *err;
2025
2026 if (p->plugin_state != UNCONFIGURED)
2027 continue;
2028 err = plugin_send_getmanifest(p, cmd_id);
2029 if (!err) {
2030 sent = true;
2031 continue;
2032 }
2033 if (plugins->startup)
2034 fatal("error starting plugin '%s': %s", p->cmd, err);
2035 tal_free(p);
2036 }
2037
2038 return sent;
2039}
2040
2041void plugins_init(struct plugins *plugins)
2042{

Callers 3

plugins_initFunction · 0.85
plugin_dynamic_startdirFunction · 0.85

Calls 3

plugin_send_getmanifestFunction · 0.85
tal_freeFunction · 0.85
fatalFunction · 0.70

Tested by

no test coverage detected