diff options
Diffstat (limited to 'python/function.py')
| -rw-r--r-- | python/function.py | 8 |
1 files changed, 8 insertions, 0 deletions
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 |
