void tlvdb_add(struct tlvdb *tlvdb, struct tlvdb *other)
{
+ if (tlvdb == other)
+ return;
+
while (tlvdb->next) {
+ if (tlvdb->next == other)
+ return;
+
tlvdb = tlvdb->next;
}
}
return false;
}
+
+bool tlvdb_get_uint8(struct tlvdb *tlvRoot, tlv_tag_t tag, uint8_t *value)
+{
+ const struct tlv *tlvelm = tlvdb_get(tlvRoot, tag, NULL);
+ return tlv_get_uint8(tlvelm, value);
+}