diff options
| author | Brian Potchik <brian@vector35.com> | 2021-08-13 18:48:51 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2021-08-13 18:48:51 -0400 |
| commit | 801b4138784a45643a7201b7e54105ea5eb3b6c4 (patch) | |
| tree | 02916c8e665e7dbc16958b55abe08ff48372abf2 /python/function.py | |
| parent | ac70b362bb4f15b1d1eeced7a44a222f663e695f (diff) | |
Workflows early preview.
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 |
