suport fragmentation for tlv8 decode

add tlv8_decode_cleanup()
This commit is contained in:
hathach committed 2018-01-25 15:11:41 +07:00
1 parent 62b80b084b
commit cdeb66fd8f
2 files changed
+73 -33

No files matched your search

+2 -2
View File
@@ -147,10 +147,10 @@ typedef struct ATTR_PACKED
} HAPResponse_t;
TLV8_t tlv8_decode_next(uint8_t const** pp_data, uint16_t* p_len);
void tlv8_decode_cleanup(TLV8_t tlv);
TLV8_t tlv8_decode_next(uint8_t const** pp_data, uint16_t* p_len, void* buf = NULL, uint16_t bufsize = 0);
bool tlv8_encode_next(uint8_t** pp_buf, uint16_t* p_buflen, TLV8_t tlv);
uint16_t tlv8_encode_n(uint8_t* buf, uint16_t bufsize, TLV8_t tlv[], uint8_t count);
uint16_t tlv8_encode_calculate_len(TLV8_t tlv_para[], uint8_t count);