diff options
| author | Brian Potchik <brian@vector35.com> | 2025-05-01 15:08:15 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2025-05-01 15:08:15 -0400 |
| commit | c997e959029e004faaa15fcfb27df48c15baff11 (patch) | |
| tree | 744e442a34f722583c9f3aafa981794ed9ed6e83 /workflow.cpp | |
| parent | c40a5f04deec68d388b2072dc42b29141089f9ce (diff) | |
Updates to WorkflowMonitor UI.
Diffstat (limited to 'workflow.cpp')
| -rw-r--r-- | workflow.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/workflow.cpp b/workflow.cpp index d4b94eb4..9c1c7d20 100644 --- a/workflow.cpp +++ b/workflow.cpp @@ -164,6 +164,18 @@ bool WorkflowMachine::PostJsonRequest(const std::string& request) } +Ref<FlowGraph> WorkflowMachine::GetGraph(const std::string& activity, bool sequential) +{ + BNFlowGraph* graph; + if (m_function) + graph = BNGetWorkflowGraphForFunction(m_function->GetObject(), activity.c_str(), sequential); + else + graph = BNGetWorkflowGraphForBinaryView(m_view->GetObject(), activity.c_str(), sequential); + + return new CoreFlowGraph(graph); +} + + void WorkflowMachine::ShowTopology() { if (m_function) |
