summaryrefslogtreecommitdiff
path: root/python/platform.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2021-09-03 11:12:56 -0400
committerPeter LaFosse <peter@vector35.com>2021-09-06 11:46:43 -0400
commit5c82c6036e04936e253d2031f73f8218bbed06aa (patch)
tree7ef969a79c88e4277d495fbae1cef5131d43f6ec /python/platform.py
parentd28dc76f738c1b3c6469213c2582ca7680b8fefe (diff)
Commonize _to_core_struct/_from_core_struct
Improve implementation of immutable_copy/mutable_copy
Diffstat (limited to 'python/platform.py')
-rw-r--r--python/platform.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/platform.py b/python/platform.py
index ad3b4941..279a80e1 100644
--- a/python/platform.py
+++ b/python/platform.py
@@ -350,21 +350,21 @@ class Platform(metaclass=_PlatformMetaClass):
return Platform(handle = result), new_addr.value
def get_type_by_name(self, name):
- name = types.QualifiedName(name)._get_core_struct()
+ name = types.QualifiedName(name)._to_core_struct()
obj = core.BNGetPlatformTypeByName(self.handle, name)
if not obj:
return None
return types.Type.create(core.BNNewTypeReference(obj), platform = self)
def get_variable_by_name(self, name):
- name = types.QualifiedName(name)._get_core_struct()
+ name = types.QualifiedName(name)._to_core_struct()
obj = core.BNGetPlatformVariableByName(self.handle, name)
if not obj:
return None
return types.Type.create(core.BNNewTypeReference(obj), platform = self)
def get_function_by_name(self, name, exactMatch=False):
- name = types.QualifiedName(name)._get_core_struct()
+ name = types.QualifiedName(name)._to_core_struct()
obj = core.BNGetPlatformFunctionByName(self.handle, name, exactMatch)
if not obj:
return None
@@ -380,7 +380,7 @@ class Platform(metaclass=_PlatformMetaClass):
return types.Type.create(core.BNNewTypeReference(obj), platform = self)
def generate_auto_platform_type_id(self, name):
- name = types.QualifiedName(name)._get_core_struct()
+ name = types.QualifiedName(name)._to_core_struct()
return core.BNGenerateAutoPlatformTypeId(self.handle, name)
def generate_auto_platform_type_ref(self, type_class, name):