From 8f7901c4709826acc0e53aeea4442b1fb9a25876 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Fri, 12 Apr 2019 14:51:42 -0400 Subject: Add incoming edges for flow graph nodes --- binaryninjaapi.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'binaryninjaapi.h') 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 m_cachedLines; - std::vector m_cachedEdges; - bool m_cachedLinesValid, m_cachedEdgesValid; + std::vector m_cachedEdges, m_cachedIncomingEdges; + bool m_cachedLinesValid, m_cachedEdgesValid, m_cachedIncomingEdgesValid; public: FlowGraphNode(FlowGraph* graph); @@ -2736,6 +2736,7 @@ namespace BinaryNinja const std::vector& GetLines(); void SetLines(const std::vector& lines); const std::vector& GetOutgoingEdges(); + const std::vector& GetIncomingEdges(); void AddOutgoingEdge(BNBranchType type, FlowGraphNode* target); BNHighlightColor GetHighlight() const; -- cgit v1.3.1