| 701 | } |
| 702 | |
| 703 | static struct msg_update_add_htlc *fromwire_struct_update_add_htlc(const tal_t *ctx, const void *p) |
| 704 | { |
| 705 | struct msg_update_add_htlc *s = tal(ctx, struct msg_update_add_htlc); |
| 706 | |
| 707 | if (fromwire_update_add_htlc(s, p, |
| 708 | &s->channel_id, |
| 709 | &s->id, |
| 710 | &s->amount_msat, |
| 711 | &s->payment_hash, |
| 712 | &s->expiry, |
| 713 | s->onion_routing_packet, |
| 714 | &s->tlvs)) |
| 715 | return s; |
| 716 | return tal_free(s); |
| 717 | } |
| 718 | |
| 719 | |
| 720 | static void *towire_struct_update_fee(const tal_t *ctx, |