def install_platforms(self): """List of platforms this plugin can execute on""" result = [] count = ctypes.c_ulonglong(0) platforms = core.BNPluginGetPlatforms(self.handle, count) for i in range(count.value): result.append(platforms[i].decode("utf-8")) core.BNFreePluginPlatforms(platforms, count) return result
def api(self): """String indicating the API used by the plugin""" result = [] count = ctypes.c_ulonglong(0) platforms = core.BNPluginGetApis(self.handle, count) for i in range(count.value): result.append(platforms[i].decode("utf-8")) core.BNFreePluginPlatforms(platforms, count) return result