diff options
| author | plafosse <peter@vector35.com> | 2016-10-31 16:06:34 -0400 |
|---|---|---|
| committer | plafosse <peter@vector35.com> | 2016-10-31 16:06:34 -0400 |
| commit | a6842fc4209ed0bc160222ee61b2e6d9741dc9ef (patch) | |
| tree | c227612ba1cf905efcf2a07bd1f3bb5829e31de9 /python/platform.py | |
| parent | 18e7e9378a4d7dff8140ed35eb47ce7993bd850b (diff) | |
Refactoring and other improvements of the python api
Diffstat (limited to 'python/platform.py')
| -rw-r--r-- | python/platform.py | 9 |
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) |
