diff options
| author | Glenn Smith <glenn@vector35.com> | 2021-06-25 18:10:08 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2021-07-01 01:32:28 -0400 |
| commit | a719ec03c082ad64dece5dcae8e386bd65879843 (patch) | |
| tree | 3df98c553ecd3cf187edec9683c1c9ae280297fd /binaryninjacore.h | |
| parent | 8f0f90294096ed12e099b0572e28b531636e4fd8 (diff) | |
Give tag types unique ids and stop relying on unique names
Diffstat (limited to 'binaryninjacore.h')
| -rw-r--r-- | binaryninjacore.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h index 73b072be..bb678720 100644 --- a/binaryninjacore.h +++ b/binaryninjacore.h @@ -3725,6 +3725,7 @@ __attribute__ ((format (printf, 1, 2))) BINARYNINJACOREAPI void BNFreeTagType(BNTagType* tagType); BINARYNINJACOREAPI void BNFreeTagTypeList(BNTagType** tagTypes, size_t count); BINARYNINJACOREAPI BNBinaryView* BNTagTypeGetView(BNTagType* tagType); + BINARYNINJACOREAPI char* BNTagTypeGetId(BNTagType* tagType); BINARYNINJACOREAPI char* BNTagTypeGetName(BNTagType* tagType); BINARYNINJACOREAPI void BNTagTypeSetName(BNTagType* tagType, const char* name); BINARYNINJACOREAPI char* BNTagTypeGetIcon(BNTagType* tagType); @@ -3747,6 +3748,8 @@ __attribute__ ((format (printf, 1, 2))) BINARYNINJACOREAPI void BNRemoveTagType(BNBinaryView* view, BNTagType* tagType); BINARYNINJACOREAPI BNTagType* BNGetTagType(BNBinaryView* view, const char* name); BINARYNINJACOREAPI BNTagType* BNGetTagTypeWithType(BNBinaryView* view, const char* name, BNTagTypeType type); + BINARYNINJACOREAPI BNTagType* BNGetTagTypeById(BNBinaryView* view, const char* id); + BINARYNINJACOREAPI BNTagType* BNGetTagTypeByIdWithType(BNBinaryView* view, const char* id, BNTagTypeType type); BINARYNINJACOREAPI BNTagType** BNGetTagTypes(BNBinaryView* view, size_t* count); BINARYNINJACOREAPI void BNAddTag(BNBinaryView* view, BNTag* tag, bool user); |
