summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorZichuan Li <34680029+river-li@users.noreply.github.com>2024-06-11 18:20:56 -0400
committerZichuan Li <34680029+river-li@users.noreply.github.com>2024-06-19 13:04:46 -0400
commitfc5b443d86d10c5ce308630f8b41c8f64f5f40f1 (patch)
treed4ba6b13d1ffbc974f6371a7e4037b337afe0bf8 /binaryninjaapi.h
parent7518e76fb706fe036fb4579f21401df6e091f9b0 (diff)
Implement callback function for fallback type library
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h8
1 files changed, 8 insertions, 0 deletions
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<std::pair<std::string, std::string>>& 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<Platform> GetRelatedPlatform(Architecture* arch);
void AddRelatedPlatform(Architecture* arch, Platform* platform);
Ref<Platform> GetAssociatedPlatformByAddress(uint64_t& addr);