39
39
/* Make a single TLV, copying the supplied data */
40
40
OtrlTLV *otrl_tlv_new(unsigned short type, unsigned short len,
43
43
/* Construct a chain of TLVs from the given data */
46
46
/* Deallocate a chain of TLVs */
47
47
void otrl_tlv_free(OtrlTLV *tlv);
49
49
/* Find the serialized length of a chain of TLVs */
52
52
/* Serialize a chain of TLVs. The supplied buffer must already be large
56
56
/* Return the first TLV with the given type in the chain, or NULL if one
58
59
OtrlTLV *otrl_tlv_find(OtrlTLV *tlvs, unsigned short type);