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

Function plugin_detect_destruction

lightningd/plugin.c:537–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535}
536
537static struct plugin_destroyed *
538plugin_detect_destruction(const struct plugin *plugin)
539{
540 struct plugin_destroyed *pd = tal(NULL, struct plugin_destroyed);
541 pd->plugin = plugin;
542 tal_add_destructor2(plugin, mark_plugin_destroyed, pd);
543 return pd;
544}
545
546static bool was_plugin_destroyed(struct plugin_destroyed *pd)
547{

Callers 2

plugin_response_handleFunction · 0.85
plugin_read_json_oneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected