summaryrefslogtreecommitdiff
path: root/function.cpp
diff options
context:
space:
mode:
authorkat <kat@vector35.com>2023-01-06 12:24:21 -0500
committerkat <kat@vector35.com>2023-01-10 08:20:54 -0500
commit64d041d11ddd2062166f79636389544ccffa422a (patch)
tree41a8853e50bddb5e21e5ad4666e806760d0a9299 /function.cpp
parentc14db13ccfedf2e4f5e1fed02bd2217bebe7f1e2 (diff)
Integrate Enum IntegerDisplayType, Add MetadataChoiceDialog
Diffstat (limited to 'function.cpp')
-rw-r--r--function.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/function.cpp b/function.cpp
index 0e6728d5..41109dea 100644
--- a/function.cpp
+++ b/function.cpp
@@ -1773,6 +1773,23 @@ void Function::SetIntegerConstantDisplayType(
}
+Ref<Type> Function::GetIntegerConstantDisplayTypeEnumType(
+ Architecture* arch, uint64_t instrAddr, uint64_t value, size_t operand)
+{
+ BNType* apiType = BNGetIntegerConstantDisplayTypeEnumerationType(m_object, arch->GetObject(), instrAddr, value, operand);
+ if (apiType)
+ return new Type(BNNewTypeReference(apiType));
+ return nullptr;
+}
+
+
+void Function::SetIntegerConstantDisplayTypeEnumType(
+ Architecture* arch, uint64_t instrAddr, uint64_t value, size_t operand, Ref<Type> type)
+{
+ BNSetIntegerConstantDisplayTypeEnumerationType(m_object, arch->GetObject(), instrAddr, value, operand, type->m_object);
+}
+
+
BNHighlightColor Function::GetInstructionHighlight(Architecture* arch, uint64_t addr)
{
return BNGetInstructionHighlight(m_object, arch->GetObject(), addr);