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/binaryview.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/binaryview.py') diff --git a/python/binaryview.py b/python/binaryview.py index 994d9edd..01da5517 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -3587,7 +3587,7 @@ class BinaryView(object): """ core.BNUndefineUserSymbol(self.handle, sym.handle) - def define_imported_function(self, import_addr_sym, func): + def define_imported_function(self, import_addr_sym, func, type=None): """ ``define_imported_function`` defines an imported Function ``func`` with a ImportedFunctionSymbol type. @@ -3595,7 +3595,7 @@ class BinaryView(object): :param Function func: A Function object to define as an imported function :rtype: None """ - core.BNDefineImportedFunction(self.handle, import_addr_sym.handle, func.handle) + core.BNDefineImportedFunction(self.handle, import_addr_sym.handle, func.handle, None if type is None else type.handle) def create_tag_type(self, name, icon): """ -- cgit v1.3.1