summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2019-04-12 14:51:42 -0400
committerRusty Wagner <rusty@vector35.com>2019-04-12 14:51:42 -0400
commit8f7901c4709826acc0e53aeea4442b1fb9a25876 (patch)
tree42575d8b2ef5c35a5546154f866c038ceff7b065 /binaryninjaapi.h
parent1eee7293d9a171ba6c2e1e3d33be6d693ac66aee (diff)
Add incoming edges for flow graph nodes
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h
index 6c7b05b8..59f0313b 100644
--- a/binaryninjaapi.h
+++ b/binaryninjaapi.h
@@ -2718,8 +2718,8 @@ namespace BinaryNinja
BNNewFlowGraphNodeReference, BNFreeFlowGraphNode>
{
std::vector<DisassemblyTextLine> m_cachedLines;
- std::vector<FlowGraphEdge> m_cachedEdges;
- bool m_cachedLinesValid, m_cachedEdgesValid;
+ std::vector<FlowGraphEdge> m_cachedEdges, m_cachedIncomingEdges;
+ bool m_cachedLinesValid, m_cachedEdgesValid, m_cachedIncomingEdgesValid;
public:
FlowGraphNode(FlowGraph* graph);
@@ -2736,6 +2736,7 @@ namespace BinaryNinja
const std::vector<DisassemblyTextLine>& GetLines();
void SetLines(const std::vector<DisassemblyTextLine>& lines);
const std::vector<FlowGraphEdge>& GetOutgoingEdges();
+ const std::vector<FlowGraphEdge>& GetIncomingEdges();
void AddOutgoingEdge(BNBranchType type, FlowGraphNode* target);
BNHighlightColor GetHighlight() const;