diff options
| author | Peter LaFosse <peter@vector35.com> | 2020-05-28 09:49:16 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2020-05-28 11:27:33 -0400 |
| commit | 1f8ca3f77de08b5c581693153bf1ef580c912a0e (patch) | |
| tree | 8a9c3d33c730513b1d16f7dbc15db73fd188b848 /python/function.py | |
| parent | 95c8fa5b0cea3daa4dba774a2dab612c3d3fe39f (diff) | |
Add optional type to define as in Function::ApplyImportedTypes and BinaryView::DefineImportedFunction APIs
Diffstat (limited to 'python/function.py')
| -rw-r--r-- | python/function.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/function.py b/python/function.py index 76c8de0c..1c244ae4 100644 --- a/python/function.py +++ b/python/function.py @@ -1960,8 +1960,8 @@ class Function(object): settings_obj = None return binaryninja.flowgraph.CoreFlowGraph(core.BNCreateFunctionGraph(self.handle, graph_type, settings_obj)) - def apply_imported_types(self, sym): - core.BNApplyImportedTypes(self.handle, sym.handle) + def apply_imported_types(self, sym, type=None): + core.BNApplyImportedTypes(self.handle, sym.handle, None if type is None else type.handle) def apply_auto_discovered_type(self, func_type): core.BNApplyAutoDiscoveredFunctionType(self.handle, func_type.handle) |
