summaryrefslogtreecommitdiff
path: root/python/platform.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/platform.py')
-rw-r--r--python/platform.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/python/platform.py b/python/platform.py
index d69c38d1..6c3eefea 100644
--- a/python/platform.py
+++ b/python/platform.py
@@ -241,3 +241,12 @@ class Platform(object):
:rtype: None
"""
core.BNRegisterPlatformCallingConvention(self.handle, cc.handle)
+
+ def get_related_platform(self, arch):
+ result = core.BNGetRelatedPlatform(self.handle, arch.handle)
+ if not result:
+ return None
+ return Platform(None, handle = result)
+
+ def add_related_platform(self, arch, platform):
+ core.BNAddRelatedPlatform(self.handle, arch.handle, platform.handle)