diff options
| author | Brian Potchik <brian@vector35.com> | 2023-07-29 01:59:56 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2023-07-29 01:59:56 -0400 |
| commit | adb819496e5e447b7acf5336ffe5d0a18a03c448 (patch) | |
| tree | bf3619d77070e8c689ebc3ff6cc4169172dfb845 /python/function.py | |
| parent | 8206f95a6a59a21f156abb4e6ec8582797f8620b (diff) | |
Core workflows feature update.
Diffstat (limited to 'python/function.py')
| -rw-r--r-- | python/function.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/python/function.py b/python/function.py index 5df6f62a..91441bc3 100644 --- a/python/function.py +++ b/python/function.py @@ -3263,7 +3263,18 @@ class Function: handle = core.BNGetWorkflowForFunction(self.handle) if handle is None: return None - return workflow.Workflow(handle=handle) + return workflow.Workflow(handle=handle, function_handle=self.handle) + + @property + def provenance(self): + """ + ``provenance`` returns a string representing the provenance. This portion of the API is under develoment. + Currently the provenance information is undocumented, not persistent, and not saved to a database. + + :return: string representation of the provenance + :rtype: str + """ + return core.BNGetProvenanceString(self.handle) def get_mlil_var_refs(self, var: 'variable.Variable') -> List[ILReferenceSource]: """ |
