From fc5b443d86d10c5ce308630f8b41c8f64f5f40f1 Mon Sep 17 00:00:00 2001 From: Zichuan Li <34680029+river-li@users.noreply.github.com> Date: Tue, 11 Jun 2024 18:20:56 -0400 Subject: Implement callback function for fallback type library --- binaryninjaapi.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 96bb4b8c..c37a1a3d 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -14556,6 +14556,7 @@ namespace BinaryNinja { char** sourceFileValues, size_t sourceFilesLen ); + static bool GetFallbackEnabledCallback(void* ctxt); public: Platform(BNPlatform* platform); @@ -14728,6 +14729,13 @@ namespace BinaryNinja { std::vector>& sourceFiles ); + /*! Provide an option for platforms to decide whether to use + * the fallback type library. + * + * Allows the Platform to override it to false. + */ + virtual bool GetFallbackEnabled(); + Ref GetRelatedPlatform(Architecture* arch); void AddRelatedPlatform(Architecture* arch, Platform* platform); Ref GetAssociatedPlatformByAddress(uint64_t& addr); -- cgit v1.3.1