From 1f8ca3f77de08b5c581693153bf1ef580c912a0e Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Thu, 28 May 2020 09:49:16 -0400 Subject: Add optional type to define as in Function::ApplyImportedTypes and BinaryView::DefineImportedFunction APIs --- python/function.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/function.py') 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) -- cgit v1.3.1