From a6842fc4209ed0bc160222ee61b2e6d9741dc9ef Mon Sep 17 00:00:00 2001 From: plafosse Date: Mon, 31 Oct 2016 16:06:34 -0400 Subject: Refactoring and other improvements of the python api --- python/platform.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'python/platform.py') 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) -- cgit v1.3.1