| 324 | } |
| 325 | |
| 326 | static unsigned closing_msg(struct subd *sd, const u8 *msg, const int *fds UNUSED) |
| 327 | { |
| 328 | enum closingd_wire t = fromwire_peektype(msg); |
| 329 | |
| 330 | switch (t) { |
| 331 | case WIRE_CLOSINGD_RECEIVED_SIGNATURE: |
| 332 | peer_received_closing_signature(sd->channel, msg); |
| 333 | break; |
| 334 | |
| 335 | case WIRE_CLOSINGD_COMPLETE: |
| 336 | peer_closing_complete(sd->channel, msg); |
| 337 | break; |
| 338 | |
| 339 | case WIRE_CLOSINGD_NOTIFICATION: |
| 340 | peer_closing_notify(sd->channel, msg); |
| 341 | break; |
| 342 | |
| 343 | /* We send these, not receive them */ |
| 344 | case WIRE_CLOSINGD_INIT: |
| 345 | case WIRE_CLOSINGD_RECEIVED_SIGNATURE_REPLY: |
| 346 | break; |
| 347 | } |
| 348 | |
| 349 | return 0; |
| 350 | } |
| 351 | |
| 352 | void peer_start_closingd(struct channel *channel, struct peer_fd *peer_fd) |
| 353 | { |
nothing calls this directly
no test coverage detected