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

Function plugins_send_getmanifest

lightningd/plugin.c:2005–2027  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2003}
2004
2005bool plugins_send_getmanifest(struct plugins *plugins, const char *cmd_id)
2006{
2007 struct plugin *p, *next;
2008 bool sent = false;
2009
2010 /* Spawn the plugin processes before entering the io_loop */
2011 list_for_each_safe(&plugins->plugins, p, next, list) {
2012 const char *err;
2013
2014 if (p->plugin_state != UNCONFIGURED)
2015 continue;
2016 err = plugin_send_getmanifest(p, cmd_id);
2017 if (!err) {
2018 sent = true;
2019 continue;
2020 }
2021 if (plugins->startup)
2022 fatal("error starting plugin '%s': %s", p->cmd, err);
2023 tal_free(p);
2024 }
2025
2026 return sent;
2027}
2028
2029void plugins_init(struct plugins *plugins)
2030{

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