| 81 | disconnect_notification_serialize); |
| 82 | |
| 83 | void notify_disconnect(struct lightningd *ld, struct node_id *nodeid) |
| 84 | { |
| 85 | void (*serialize)(struct json_stream *, |
| 86 | struct node_id *) = disconnect_notification_gen.serialize; |
| 87 | |
| 88 | struct jsonrpc_notification *n |
| 89 | = jsonrpc_notification_start(NULL, disconnect_notification_gen.topic); |
| 90 | serialize(n->stream, nodeid); |
| 91 | jsonrpc_notification_end(n); |
| 92 | plugins_notify(ld->plugins, take(n)); |
| 93 | } |
| 94 | |
| 95 | /*'warning' is based on LOG_UNUSUAL/LOG_BROKEN level log |
| 96 | *(in plugin module, they're 'warn'/'error' level). */ |
no test coverage detected