From 87a8a04db5c0a80c06819ec6caf1568b7202cf51 Mon Sep 17 00:00:00 2001 From: Xusheng Date: Tue, 28 Sep 2021 14:19:23 +0800 Subject: Check in the debugger --- binaryviewtype.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'binaryviewtype.cpp') 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(); -- cgit v1.3.1