| 61 | } |
| 62 | |
| 63 | int msg_extract_fd(const struct msg_queue *q, const u8 *msg) |
| 64 | { |
| 65 | const u8 *p = msg + sizeof(u16); |
| 66 | size_t len = tal_count(msg) - sizeof(u16); |
| 67 | |
| 68 | assert(q->fd_passing); |
| 69 | if (fromwire_peektype(msg) != MSG_PASS_FD) |
| 70 | return -1; |
| 71 | |
| 72 | return fromwire_u32(&p, &len); |
| 73 | } |
| 74 | |
| 75 | void msg_wake(const struct msg_queue *q) |
| 76 | { |
no test coverage detected