From 94649dde0d847aa2407d565632f7d2c3cdff32f5 Mon Sep 17 00:00:00 2001 From: rose <47357290+rose4096@users.noreply.github.com> Date: Thu, 9 Jun 2022 17:06:30 -0400 Subject: Add `IsExternal` callback to debug info API --- binaryninjaapi.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 22b72ee4..fa076984 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -6953,11 +6953,13 @@ namespace BinaryNinja { std::string GetName() const; Ref Parse(Ref view, Ref existingDebugInfo = nullptr) const; + bool IsExternal() const; bool IsValidForView(const Ref view) const; }; class CustomDebugInfoParser : public DebugInfoParser { + static bool IsExternalCallback(void* ctxt); static bool IsValidCallback(void* ctxt, BNBinaryView* view); static void ParseCallback(void* ctxt, BNDebugInfo* debugInfo, BNBinaryView* view); BNDebugInfoParser* Register(const std::string& name); @@ -6966,6 +6968,7 @@ namespace BinaryNinja { CustomDebugInfoParser(const std::string& name); virtual ~CustomDebugInfoParser() {} + virtual bool IsExternal() = 0; virtual bool IsValid(Ref) = 0; virtual void ParseInfo(Ref, Ref) = 0; }; -- cgit v1.3.1