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