From 290661e66c9983e696bd434f271b033263a0f5c3 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Wed, 15 Jul 2015 21:50:13 -0400 Subject: Compute data flow across blocks, disassembly options dropdown --- binaryninjaapi.h | 3 +++ functiongraph.cpp | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/binaryninjaapi.h b/binaryninjaapi.h index de1855a0..0883d310 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -1026,6 +1026,9 @@ namespace BinaryNinja int GetWidth() const; int GetHeight() const; std::vector> GetBlocksInRegion(int left, int top, int right, int bottom); + + bool IsOptionSet(BNFunctionGraphOption option) const; + void SetOption(BNFunctionGraphOption option, bool state = true); }; struct LowLevelILLabel: public BNLowLevelILLabel diff --git a/functiongraph.cpp b/functiongraph.cpp index 1ebd149f..72c98bd2 100644 --- a/functiongraph.cpp +++ b/functiongraph.cpp @@ -128,3 +128,15 @@ vector> FunctionGraph::GetBlocksInRegion(int left, int t BNFreeFunctionGraphBlockList(blocks, count); return result; } + + +bool FunctionGraph::IsOptionSet(BNFunctionGraphOption option) const +{ + return BNIsFunctionGraphOptionSet(m_graph, option); +} + + +void FunctionGraph::SetOption(BNFunctionGraphOption option, bool state) +{ + BNSetFunctionGraphOption(m_graph, option, state); +} -- cgit v1.3.1