| 1187 | } |
| 1188 | |
| 1189 | static struct io_plan *subd_conn_init(struct io_conn *subd_conn, |
| 1190 | struct subd *subd) |
| 1191 | { |
| 1192 | subd->conn = subd_conn; |
| 1193 | |
| 1194 | /* subd is a child of the conn: free when it closes! */ |
| 1195 | tal_steal(subd->conn, subd); |
| 1196 | return io_duplex(subd_conn, |
| 1197 | read_from_subd(subd_conn, subd), |
| 1198 | write_to_subd(subd_conn, subd)); |
| 1199 | } |
| 1200 | |
| 1201 | static void destroy_peer_conn(struct io_conn *peer_conn, struct peer *peer) |
| 1202 | { |
nothing calls this directly
no test coverage detected