summaryrefslogtreecommitdiff
path: root/binaryninjacore.h
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2019-02-28 22:18:52 -0500
committerRusty Wagner <rusty@vector35.com>2019-03-20 12:58:42 -0400
commit4ed3228ecdb1a6ec5b22341ae2ddd1b090577628 (patch)
tree9acbe4a714d6929b5fc26154a82c92a48da4a44c /binaryninjacore.h
parent6e05d56c53c31ac2b87cc64b48d6b501b1ca0650 (diff)
Add flow graph options for additional UI features
Diffstat (limited to 'binaryninjacore.h')
-rw-r--r--binaryninjacore.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h
index 2b831266..00163b92 100644
--- a/binaryninjacore.h
+++ b/binaryninjacore.h
@@ -702,6 +702,16 @@ extern "C"
PointerDisplayType
};
+ enum BNFlowGraphOption
+ {
+ FlowGraphUsesBlockHighlights,
+ FlowGraphUsesInstructionHighlights,
+ FlowGraphIncludesUserComments,
+ FlowGraphAllowsPatching,
+ FlowGraphAllowsInlineInstructionEditing,
+ FlowGraphShowsSecondaryRegisterHighlighting
+ };
+
struct BNLowLevelILInstruction
{
BNLowLevelILOperation operation;
@@ -2860,6 +2870,8 @@ extern "C"
BINARYNINJACOREAPI void BNFreeFlowGraph(BNFlowGraph* graph);
BINARYNINJACOREAPI BNFunction* BNGetFunctionForFlowGraph(BNFlowGraph* graph);
BINARYNINJACOREAPI void BNSetFunctionForFlowGraph(BNFlowGraph* graph, BNFunction* func);
+ BINARYNINJACOREAPI BNBinaryView* BNGetViewForFlowGraph(BNFlowGraph* graph);
+ BINARYNINJACOREAPI void BNSetViewForFlowGraph(BNFlowGraph* graph, BNBinaryView* view);
BINARYNINJACOREAPI int BNGetHorizontalFlowGraphNodeMargin(BNFlowGraph* graph);
BINARYNINJACOREAPI int BNGetVerticalFlowGraphNodeMargin(BNFlowGraph* graph);
@@ -2916,6 +2928,9 @@ extern "C"
BINARYNINJACOREAPI BNFlowGraph* BNUpdateFlowGraph(BNFlowGraph* graph);
+ BINARYNINJACOREAPI void BNSetFlowGraphOption(BNFlowGraph* graph, BNFlowGraphOption option, bool value);
+ BINARYNINJACOREAPI bool BNIsFlowGraphOptionSet(BNFlowGraph* graph, BNFlowGraphOption option);
+
// Symbols
BINARYNINJACOREAPI BNSymbol* BNCreateSymbol(BNSymbolType type, const char* shortName, const char* fullName,
const char* rawName, uint64_t addr, BNSymbolBinding binding, const BNNameSpace* nameSpace);