| 626 | } |
| 627 | |
| 628 | bool notify_deprecated_oneshot(struct lightningd *ld, |
| 629 | struct plugin *p, |
| 630 | bool deprecated_ok) |
| 631 | { |
| 632 | struct jsonrpc_notification *n = notify_start(ld, "deprecated_oneshot"); |
| 633 | if (!n) |
| 634 | return false; |
| 635 | json_add_bool(n->stream, "deprecated_ok", deprecated_ok); |
| 636 | json_object_end(n->stream); |
| 637 | jsonrpc_notification_end(n); |
| 638 | return plugin_single_notify(p, take(n)); |
| 639 | } |
| 640 | REGISTER_NOTIFICATION(deprecated_oneshot); |
| 641 | |
| 642 | static void log_notification_serialize(struct json_stream *stream, |
no test coverage detected