| 678 | } |
| 679 | |
| 680 | static struct msg_error *fromwire_struct_error(const tal_t *ctx, const void *p) |
| 681 | { |
| 682 | struct msg_error *s = tal(ctx, struct msg_error); |
| 683 | |
| 684 | if (!fromwire_error(s, p, |
| 685 | &s->channel_id, |
| 686 | &s->data)) |
| 687 | return tal_free(s); |
| 688 | return s; |
| 689 | } |
| 690 | |
| 691 | static void *towire_struct_update_add_htlc(const tal_t *ctx, |
| 692 | const struct msg_update_add_htlc *s) |