From 801b4138784a45643a7201b7e54105ea5eb3b6c4 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Fri, 13 Aug 2021 18:48:51 -0400 Subject: Workflows early preview. --- python/function.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'python/function.py') diff --git a/python/function.py b/python/function.py index e3d0521c..9bc83b09 100644 --- a/python/function.py +++ b/python/function.py @@ -35,6 +35,7 @@ from binaryninja import highlight from binaryninja import log from binaryninja import types from binaryninja import decorators +from binaryninja import workflow from binaryninja.enums import (AnalysisSkipReason, FunctionGraphType, BranchType, SymbolType, InstructionTextTokenType, HighlightStandardColor, HighlightColorStyle, RegisterValueType, ImplicitRegisterExtend, DisassemblyOption, IntegerDisplayType, InstructionTextTokenContext, VariableSourceType, @@ -3226,6 +3227,13 @@ class Function(object): """ core.BNReanalyzeFunction(self.handle) + @property + def workflow(self): + handle = core.BNGetWorkflowForFunction(self.handle) + if handle is None: + return None + return binaryninja.Workflow(handle = handle) + def request_advanced_analysis_data(self): core.BNRequestAdvancedFunctionAnalysisData(self.handle) self._advanced_analysis_requests += 1 -- cgit v1.3.1