dump only leaf TLV data

This commit is contained in:
pwpiwi 2017-11-10 23:09:08 +01:00
commit 33a9982c76
4 changed files with 8 additions and 4 deletions

View file

@ -31,7 +31,7 @@ struct tlv {
};
struct tlvdb;
typedef bool (*tlv_cb)(void *data, const struct tlv *tlv, int level);
typedef bool (*tlv_cb)(void *data, const struct tlv *tlv, int level, bool is_leaf);
struct tlvdb *tlvdb_fixed(tlv_tag_t tag, size_t len, const unsigned char *value);
struct tlvdb *tlvdb_external(tlv_tag_t tag, size_t len, const unsigned char *value);