| 616 | REGISTER_NOTIFICATION(shutdown); |
| 617 | |
| 618 | bool notify_plugin_shutdown(struct lightningd *ld, struct plugin *p) |
| 619 | { |
| 620 | struct jsonrpc_notification *n = notify_start(ld, "shutdown"); |
| 621 | if (!n) |
| 622 | return false; |
| 623 | json_object_end(n->stream); |
| 624 | jsonrpc_notification_end(n); |
| 625 | return plugin_single_notify(p, take(n)); |
| 626 | } |
| 627 | |
| 628 | bool notify_deprecated_oneshot(struct lightningd *ld, |
| 629 | struct plugin *p, |
no test coverage detected