diff options
| author | Peter LaFosse <peter@vector35.com> | 2019-05-14 21:34:57 -0700 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2019-07-08 23:14:30 -0400 |
| commit | ad37832dd4ffa112b10b523a151d3fa9b86b6c9d (patch) | |
| tree | 364641f60f878150bb010c4b51f088e49c8ba058 /binaryninjaapi.cpp | |
| parent | 7e7f0b41548057093fb48f1d8985712b619e9438 (diff) | |
PluginManager refactor for supporting plugin installation ui
Expose additional PluginManager APIs and update documentation
Diffstat (limited to 'binaryninjaapi.cpp')
| -rw-r--r-- | binaryninjaapi.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/binaryninjaapi.cpp b/binaryninjaapi.cpp index 66ddbffd..5dcc3ad1 100644 --- a/binaryninjaapi.cpp +++ b/binaryninjaapi.cpp @@ -368,3 +368,16 @@ map<string, uint64_t> BinaryNinja::GetMemoryUsageInfo() BNFreeMemoryUsageInfo(info, count); return result; } + + +vector<string> BinaryNinja::GetRegisteredPluginLoaders() +{ + size_t count = 0; + char** loaders = BNGetRegisteredPluginLoaders(&count); + vector<string> result; + result.reserve(count); + for (size_t i = 0; i < count; i++) + result.push_back(loaders[i]); + BNFreeRegisteredPluginLoadersList(loaders, count); + return result; +} |
