| 55 | connect_notification_serialize); |
| 56 | |
| 57 | void notify_connect(struct lightningd *ld, |
| 58 | const struct node_id *nodeid, |
| 59 | bool incoming, |
| 60 | const struct wireaddr_internal *addr) |
| 61 | { |
| 62 | void (*serialize)(struct json_stream *, |
| 63 | const struct node_id *, |
| 64 | bool, |
| 65 | const struct wireaddr_internal *) = connect_notification_gen.serialize; |
| 66 | |
| 67 | struct jsonrpc_notification *n |
| 68 | = jsonrpc_notification_start(NULL, connect_notification_gen.topic); |
| 69 | serialize(n->stream, nodeid, incoming, addr); |
| 70 | jsonrpc_notification_end(n); |
| 71 | plugins_notify(ld->plugins, take(n)); |
| 72 | } |
| 73 | |
| 74 | static void disconnect_notification_serialize(struct json_stream *stream, |
| 75 | struct node_id *nodeid) |
no test coverage detected