| 535 | } |
| 536 | |
| 537 | static struct plugin_destroyed * |
| 538 | plugin_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 | |
| 546 | static bool was_plugin_destroyed(struct plugin_destroyed *pd) |
| 547 | { |
no outgoing calls
no test coverage detected