From 5cfb38e1c3178195935b969201dd7e42419ea671 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Mon, 24 Oct 2016 18:40:20 -0400 Subject: Add related platform API to Python --- python/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'python/__init__.py') diff --git a/python/__init__.py b/python/__init__.py index 63916b1f..6db17545 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -9713,6 +9713,15 @@ class Platform(object): """ 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) + class ScriptingOutputListener(object): def _register(self, handle): self._cb = core.BNScriptingOutputListener() -- cgit v1.3.1