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 /binaryninjaapi.h | |
| parent | 8f0f90294096ed12e099b0572e28b531636e4fd8 (diff) | |
Give tag types unique ids and stop relying on unique names
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index daaff150..d1467d0f 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -1311,6 +1311,7 @@ __attribute__ ((format (printf, 1, 2))) TagType(BinaryView* view, const std::string& name, const std::string& icon, bool visible = true, Type type = UserTagType); BinaryView* GetView() const; + std::string GetId() const; std::string GetName() const; void SetName(const std::string& name); std::string GetIcon() const; @@ -1669,6 +1670,10 @@ __attribute__ ((format (printf, 1, 2))) void RemoveTagType(Ref<TagType> tagType); Ref<TagType> GetTagType(const std::string& name); Ref<TagType> GetTagType(const std::string& name, TagType::Type type); + Ref<TagType> GetTagTypeByName(const std::string& name); + Ref<TagType> GetTagTypeByName(const std::string& name, TagType::Type type); + Ref<TagType> GetTagTypeById(const std::string& id); + Ref<TagType> GetTagTypeById(const std::string& id, TagType::Type type); std::vector<Ref<TagType>> GetTagTypes(); void AddTag(Ref<Tag> tag, bool user = false); |
