mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-19 21:03:23 -07:00
remove duplicates in tlv.h and add get_uint_8
This commit is contained in:
parent
46a9c98004
commit
fe79b0e411
2 changed files with 7 additions and 2 deletions
|
@ -582,3 +582,9 @@ bool tlv_get_int(const struct tlv *etlv, int *value)
|
||||||
}
|
}
|
||||||
return false;
|
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);
|
||||||
|
}
|
||||||
|
|
|
@ -65,7 +65,6 @@ bool tlv_equal(const struct tlv *a, const struct tlv *b);
|
||||||
bool tlv_get_uint8(const struct tlv *etlv, uint8_t *value);
|
bool tlv_get_uint8(const struct tlv *etlv, uint8_t *value);
|
||||||
bool tlv_get_int(const struct tlv *etlv, int *value);
|
bool tlv_get_int(const struct tlv *etlv, int *value);
|
||||||
|
|
||||||
bool tlv_get_uint8(const struct tlv *etlv, uint8_t *value);
|
bool tlvdb_get_uint8(struct tlvdb *tlvRoot, tlv_tag_t tag, uint8_t *value);
|
||||||
bool tlv_get_int(const struct tlv *etlv, int *value);
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue