summaryrefslogtreecommitdiff
path: root/binaryviewtype.cpp
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2021-09-28 14:19:23 +0800
committerXusheng <xusheng@vector35.com>2022-04-29 11:21:47 +0800
commit87a8a04db5c0a80c06819ec6caf1568b7202cf51 (patch)
tree8850056e2ade5dd60262b20a76e035658136b965 /binaryviewtype.cpp
parentdbb5c9d47b3db0a478aab57b9ef43d0dd3f6d4b5 (diff)
Check in the debugger
Diffstat (limited to 'binaryviewtype.cpp')
-rw-r--r--binaryviewtype.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/binaryviewtype.cpp b/binaryviewtype.cpp
index cb8abea8..657970a6 100644
--- a/binaryviewtype.cpp
+++ b/binaryviewtype.cpp
@@ -54,6 +54,13 @@ bool BinaryViewType::IsValidCallback(void* ctxt, BNBinaryView* data)
}
+bool BinaryViewType::IsDeprecatedCallback(void* ctxt)
+{
+ BinaryViewType* type = (BinaryViewType*)ctxt;
+ return type->IsDeprecated();
+}
+
+
BNSettings* BinaryViewType::GetSettingsCallback(void* ctxt, BNBinaryView* data)
{
BinaryViewType* type = (BinaryViewType*)ctxt;
@@ -85,6 +92,7 @@ void BinaryViewType::Register(BinaryViewType* type)
callbacks.create = CreateCallback;
callbacks.parse = ParseCallback;
callbacks.isValidForData = IsValidCallback;
+ callbacks.isDeprecated = IsDeprecatedCallback;
callbacks.getLoadSettingsForData = GetSettingsCallback;
type->AddRefForRegistration();