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

Function plugin_detect_destruction

lightningd/plugin.c:643–650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

641}
642
643static struct plugin_destroyed *
644plugin_detect_destruction(const struct plugin *plugin)
645{
646 struct plugin_destroyed *pd = notleak(tal(NULL, struct plugin_destroyed));
647 pd->plugin = plugin;
648 tal_add_destructor2(plugin, mark_plugin_destroyed, pd);
649 return pd;
650}
651
652static bool was_plugin_destroyed(struct plugin_destroyed *pd)
653{

Callers 1

plugin_read_jsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected