| 42 | } |
| 43 | |
| 44 | static struct tlv_field *tlvstream_get_raw(struct tlv_field *stream, u64 type) |
| 45 | { |
| 46 | for (size_t i=0; i<tal_count(stream); i++) |
| 47 | if (stream[i].numtype == type) |
| 48 | return &stream[i]; |
| 49 | return NULL; |
| 50 | } |
| 51 | |
| 52 | void tlvstream_set_raw(struct tlv_field **stream, u64 type, const void *value TAKES, size_t valuelen) |
| 53 | { |