コード例 #1
0
 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
コード例 #2
0
 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