| 42 | } |
| 43 | |
| 44 | static void connect_notification_serialize(struct json_stream *stream, |
| 45 | const struct node_id *nodeid, |
| 46 | bool incoming, |
| 47 | const struct wireaddr_internal *addr) |
| 48 | { |
| 49 | json_add_node_id(stream, "id", nodeid); |
| 50 | json_add_string(stream, "direction", incoming ? "in" : "out"); |
| 51 | json_add_address_internal(stream, "address", addr); |
| 52 | } |
| 53 | |
| 54 | REGISTER_NOTIFICATION(connect, |
| 55 | connect_notification_serialize); |
nothing calls this directly
no test coverage detected