diff options
| author | Rusty Wagner <rusty@vector35.com> | 2019-01-29 19:52:52 -0500 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2019-01-30 16:09:12 -0500 |
| commit | 78fc76b12da21dae9be6c57d92e08691a533836f (patch) | |
| tree | 2652620541088abc6d8e50564b78f3571bc5f31b /flowgraphnode.cpp | |
| parent | cbb196c27ff14928ac17bd97dc7a537726fbffed (diff) | |
Prepare API for Python UI bindings
Diffstat (limited to 'flowgraphnode.cpp')
| -rw-r--r-- | flowgraphnode.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/flowgraphnode.cpp b/flowgraphnode.cpp index 9d4ed631..0101d716 100644 --- a/flowgraphnode.cpp +++ b/flowgraphnode.cpp @@ -40,6 +40,15 @@ FlowGraphNode::FlowGraphNode(BNFlowGraphNode* node) } +Ref<FlowGraph> FlowGraphNode::GetGraph() const +{ + BNFlowGraph* graph = BNGetFlowGraphNodeOwner(m_object); + if (!graph) + return nullptr; + return new CoreFlowGraph(graph); +} + + Ref<BasicBlock> FlowGraphNode::GetBasicBlock() const { BNBasicBlock* block = BNGetFlowGraphBasicBlock(m_object); |
