From 3808f91664f9632eb9d754a1ff99447b50468b36 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Sat, 3 Jul 2021 01:08:47 -0400 Subject: Cleanup tags and comments in many places Fixes #1926 #2374 #2325 #2204 #1652 and possibly others --- binaryninjaapi.h | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 6d4119ca..7927ede9 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -1695,20 +1695,30 @@ __attribute__ ((format (printf, 1, 2))) std::vector GetAllAddressTagReferences(); std::vector GetAllFunctionTagReferences(); std::vector GetAllTagReferencesOfType(Ref tagType); - std::vector GetTagReferencesOfType(Ref tagType); + std::vector GetTagReferencesOfType(Ref tagType); size_t GetTagReferencesOfTypeCount(Ref tagType); size_t GetAllTagReferencesOfTypeCount(Ref tagType); std::map, size_t> GetAllTagReferenceTypeCounts(); std::vector GetDataTagReferences(); + std::vector GetAutoDataTagReferences(); + std::vector GetUserDataTagReferences(); std::vector> GetDataTags(uint64_t addr); + std::vector> GetAutoDataTags(uint64_t addr); + std::vector> GetUserDataTags(uint64_t addr); std::vector> GetDataTagsOfType(uint64_t addr, Ref tagType); - std::vector> GetDataTagsInRange(uint64_t start, uint64_t end); + std::vector> GetAutoDataTagsOfType(uint64_t addr, Ref tagType); + std::vector> GetUserDataTagsOfType(uint64_t addr, Ref tagType); + std::vector GetDataTagsInRange(uint64_t start, uint64_t end); + std::vector GetAutoDataTagsInRange(uint64_t start, uint64_t end); + std::vector GetUserDataTagsInRange(uint64_t start, uint64_t end); void AddAutoDataTag(uint64_t addr, Ref tag); void RemoveAutoDataTag(uint64_t addr, Ref tag); + void RemoveAutoDataTagsOfType(uint64_t addr, Ref tagType); void AddUserDataTag(uint64_t addr, Ref tag); void RemoveUserDataTag(uint64_t addr, Ref tag); + void RemoveUserDataTagsOfType(uint64_t addr, Ref tagType); void RemoveTagReference(const TagReference& ref); Ref CreateAutoDataTag(uint64_t addr, const std::string& tagTypeName, const std::string& data, bool unique = false); @@ -3309,20 +3319,39 @@ __attribute__ ((format (printf, 1, 2))) std::vector GetTagReferencesOfType(Ref tagType); std::vector GetAddressTagReferences(); + std::vector GetAutoAddressTagReferences(); + std::vector GetUserAddressTagReferences(); std::vector> GetAddressTags(Architecture* arch, uint64_t addr); + std::vector> GetAutoAddressTags(Architecture* arch, uint64_t addr); + std::vector> GetUserAddressTags(Architecture* arch, uint64_t addr); std::vector> GetAddressTagsOfType(Architecture* arch, uint64_t addr, Ref tagType); + std::vector> GetAutoAddressTagsOfType(Architecture* arch, uint64_t addr, Ref tagType); + std::vector> GetUserAddressTagsOfType(Architecture* arch, uint64_t addr, Ref tagType); + std::vector GetAddressTagsInRange(Architecture* arch, uint64_t start, uint64_t end); + std::vector GetAutoAddressTagsInRange(Architecture* arch, uint64_t start, uint64_t end); + std::vector GetUserAddressTagsInRange(Architecture* arch, uint64_t start, uint64_t end); void AddAutoAddressTag(Architecture* arch, uint64_t addr, Ref tag); void RemoveAutoAddressTag(Architecture* arch, uint64_t addr, Ref tag); + void RemoveAutoAddressTagsOfType(Architecture* arch, uint64_t addr, Ref tagType); void AddUserAddressTag(Architecture* arch, uint64_t addr, Ref tag); void RemoveUserAddressTag(Architecture* arch, uint64_t addr, Ref tag); + void RemoveUserAddressTagsOfType(Architecture* arch, uint64_t addr, Ref tagType); std::vector GetFunctionTagReferences(); + std::vector GetAutoFunctionTagReferences(); + std::vector GetUserFunctionTagReferences(); std::vector> GetFunctionTags(); + std::vector> GetAutoFunctionTags(); + std::vector> GetUserFunctionTags(); std::vector> GetFunctionTagsOfType(Ref tagType); + std::vector> GetAutoFunctionTagsOfType(Ref tagType); + std::vector> GetUserFunctionTagsOfType(Ref tagType); void AddAutoFunctionTag(Ref tag); void RemoveAutoFunctionTag(Ref tag); + void RemoveAutoFunctionTagsOfType(Ref tagType); void AddUserFunctionTag(Ref tag); void RemoveUserFunctionTag(Ref tag); + void RemoveUserFunctionTagsOfType(Ref tagType); Ref CreateAutoAddressTag(Architecture* arch, uint64_t addr, const std::string& tagTypeName, const std::string& data, bool unique = false); Ref CreateUserAddressTag(Architecture* arch, uint64_t addr, const std::string& tagTypeName, const std::string& data, bool unique = false); -- cgit v1.3.1