summaryrefslogtreecommitdiff
path: root/binaryninjacore.h
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2016-05-25 19:29:10 -0400
committerRusty Wagner <rusty@vector35.com>2016-05-25 19:29:10 -0400
commit0c3c4285a38d70bafb089b85e6764d0f4153ff9c (patch)
tree8e0025d90a2938d46596cbd62e691150dc6650bf /binaryninjacore.h
parentebb6efaf92d36c0284bd8a5450cf2c051446f23a (diff)
Adding API to retrieve basic block annotations
Diffstat (limited to 'binaryninjacore.h')
-rw-r--r--binaryninjacore.h10
1 files changed, 10 insertions, 0 deletions
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);