diff options
| author | Rusty Wagner <rusty@vector35.com> | 2016-10-24 18:40:20 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2016-10-24 18:40:20 -0400 |
| commit | 5cfb38e1c3178195935b969201dd7e42419ea671 (patch) | |
| tree | 1d64c6c23928998ae3d90281f259b6a8d500cc49 /python/__init__.py | |
| parent | 0ccbd5f5fe3e646ac18ea013bb443a2b5b29b609 (diff) | |
Add related platform API to Python
Diffstat (limited to 'python/__init__.py')
| -rw-r--r-- | python/__init__.py | 9 |
1 files changed, 9 insertions, 0 deletions
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() |
