summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
author0cyn <kat@vector35.com>2025-11-03 15:04:53 -0500
committer0cyn <kat@vector35.com>2025-11-03 15:04:53 -0500
commit023ec070cf1328879ff95e520a6b14ee092dde60 (patch)
tree0c59006a0fd19fbe24ead3c51ed402dd7114d807 /binaryninjaapi.h
parent0c55bf12f6148a8f3c4b1af66c950d73e371b351 (diff)
Revert "Refactor Plugin Load/Management to support upcoming changes"
This reverts commit 72fcf44f3731ade3cf1310da55f633f1cb9069ce.
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h
index 57dbb3ac..b8dde5cd 100644
--- a/binaryninjaapi.h
+++ b/binaryninjaapi.h
@@ -18444,10 +18444,10 @@ namespace BinaryNinja {
/*!
\ingroup pluginmanager
*/
- class RepoPlugin : public CoreRefCountObject<BNPlugin, BNNewPluginReference, BNFreePlugin>
+ class RepoPlugin : public CoreRefCountObject<BNRepoPlugin, BNNewPluginReference, BNFreePlugin>
{
public:
- RepoPlugin(BNPlugin* plugin);
+ RepoPlugin(BNRepoPlugin* plugin);
PluginStatus GetPluginStatus() const;
std::vector<std::string> GetApis() const;
std::vector<std::string> GetInstallPlatforms() const;
@@ -18512,13 +18512,17 @@ namespace BinaryNinja {
/*!
\ingroup pluginmanager
*/
- class RepositoryManager
+ class RepositoryManager :
+ public CoreRefCountObject<BNRepositoryManager, BNNewRepositoryManagerReference, BNFreeRepositoryManager>
{
public:
- static bool CheckForUpdates();
- static std::vector<Ref<Repository>> GetRepositories();
- static Ref<Repository> GetRepositoryByPath(const std::string& repoName);
- static bool AddRepository(const std::string& url, // URL to raw plugins.json file
+ RepositoryManager(const std::string& enabledPluginsPath);
+ RepositoryManager(BNRepositoryManager* repoManager);
+ RepositoryManager();
+ bool CheckForUpdates();
+ std::vector<Ref<Repository>> GetRepositories();
+ Ref<Repository> GetRepositoryByPath(const std::string& repoName);
+ bool AddRepository(const std::string& url, // URL to raw plugins.json file
const std::string& repoPath); // Relative path within the repositories directory
Ref<Repository> GetDefaultRepository();
};