From 0c3c4285a38d70bafb089b85e6764d0f4153ff9c Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Wed, 25 May 2016 19:29:10 -0400 Subject: Adding API to retrieve basic block annotations --- binaryninjacore.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'binaryninjacore.h') diff --git a/binaryninjacore.h b/binaryninjacore.h index 0eff6aaf..db6f6f27 100644 --- a/binaryninjacore.h +++ b/binaryninjacore.h @@ -496,6 +496,12 @@ extern "C" uint64_t value; }; + struct BNInstructionTextLine + { + BNInstructionTextToken* tokens; + size_t count; + }; + struct BNCustomArchitecture { void* context; @@ -1179,6 +1185,10 @@ extern "C" uint64_t addr, size_t* count); BINARYNINJACOREAPI void BNFreeIndirectBranchList(BNIndirectBranchInfo* branches); + BINARYNINJACOREAPI BNInstructionTextLine* BNGetFunctionBlockAnnotations(BNFunction* func, BNArchitecture* arch, + uint64_t addr, size_t* count); + BINARYNINJACOREAPI void BNFreeInstructionTextLines(BNInstructionTextLine* lines, size_t count); + // Function graph BINARYNINJACOREAPI BNFunctionGraph* BNCreateFunctionGraph(BNFunction* func); BINARYNINJACOREAPI BNFunctionGraph* BNNewFunctionGraphReference(BNFunctionGraph* graph); -- cgit v1.3.1