diff options
| -rw-r--r-- | binaryninjaapi.h | 2 | ||||
| -rw-r--r-- | binaryninjacore.h | 4 | ||||
| -rw-r--r-- | type.cpp | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index f4b1d9dc..e3231f85 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -7855,7 +7855,7 @@ namespace BinaryNinja { public: Enumeration(BNEnumeration* e); - std::vector<InstructionTextToken> GetTokensForValue(uint64_t value, size_t width); + std::vector<InstructionTextToken> GetTokensForValue(uint64_t value, size_t width, Ref<Type> type); std::vector<EnumerationMember> GetMembers() const; }; diff --git a/binaryninjacore.h b/binaryninjacore.h index 67454a43..4b4f43cc 100644 --- a/binaryninjacore.h +++ b/binaryninjacore.h @@ -36,7 +36,7 @@ // Current ABI version for linking to the core. This is incremented any time // there are changes to the API that affect linking, including new functions, // new types, or modifications to existing functions or types. -#define BN_CURRENT_CORE_ABI_VERSION 34 +#define BN_CURRENT_CORE_ABI_VERSION 35 // Minimum ABI version that is supported for loading of plugins. Plugins that // are linked to an ABI version less than this will not be able to load and @@ -5559,7 +5559,7 @@ extern "C" BINARYNINJACOREAPI BNEnumerationMember* BNGetEnumerationMembers(BNEnumeration* e, size_t* count); BINARYNINJACOREAPI BNInstructionTextToken* BNGetEnumerationTokensForValue(BNEnumeration* e, uint64_t value, - uint64_t width, size_t* count); + uint64_t width, size_t* count, BNType* type); BINARYNINJACOREAPI void BNFreeEnumerationMemberList(BNEnumerationMember* members, size_t count); BINARYNINJACOREAPI BNEnumerationMember* BNGetEnumerationBuilderMembers(BNEnumerationBuilder* e, size_t* count); @@ -2559,10 +2559,10 @@ vector<EnumerationMember> Enumeration::GetMembers() const } -vector<InstructionTextToken> Enumeration::GetTokensForValue(uint64_t value, size_t width) +vector<InstructionTextToken> Enumeration::GetTokensForValue(uint64_t value, size_t width, Ref<Type> type) { size_t count; - BNInstructionTextToken* tokens = BNGetEnumerationTokensForValue(m_object, value, width, &count); + BNInstructionTextToken* tokens = BNGetEnumerationTokensForValue(m_object, value, width, &count, type->GetObject()); return InstructionTextToken::ConvertAndFreeInstructionTextTokenList(tokens, count); } |
