From a719ec03c082ad64dece5dcae8e386bd65879843 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Fri, 25 Jun 2021 18:10:08 -0400 Subject: Give tag types unique ids and stop relying on unique names --- binaryninjaapi.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'binaryninjaapi.h') 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); Ref GetTagType(const std::string& name); Ref GetTagType(const std::string& name, TagType::Type type); + Ref GetTagTypeByName(const std::string& name); + Ref GetTagTypeByName(const std::string& name, TagType::Type type); + Ref GetTagTypeById(const std::string& id); + Ref GetTagTypeById(const std::string& id, TagType::Type type); std::vector> GetTagTypes(); void AddTag(Ref tag, bool user = false); -- cgit v1.3.1