summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
author0cyn <kat@vector35.com>2025-10-22 02:37:05 -0400
committer0cyn <kat@vector35.com>2025-10-29 07:50:20 -0400
commit72fcf44f3731ade3cf1310da55f633f1cb9069ce (patch)
tree8b110d6951080ee3bf3a1a742c2c72dbb497c517 /binaryninjaapi.h
parent5d9fa6553036f9d0e5216948585f4e7dcde3fcb7 (diff)
Refactor Plugin Load/Management to support upcoming changes
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h
index ad557146..08c6e555 100644
--- a/binaryninjaapi.h
+++ b/binaryninjaapi.h
@@ -18425,10 +18425,10 @@ namespace BinaryNinja {
/*!
\ingroup pluginmanager
*/
- class RepoPlugin : public CoreRefCountObject<BNRepoPlugin, BNNewPluginReference, BNFreePlugin>
+ class RepoPlugin : public CoreRefCountObject<BNPlugin, BNNewPluginReference, BNFreePlugin>
{
public:
- RepoPlugin(BNRepoPlugin* plugin);
+ RepoPlugin(BNPlugin* plugin);
PluginStatus GetPluginStatus() const;
std::vector<std::string> GetApis() const;
std::vector<std::string> GetInstallPlatforms() const;
@@ -18493,17 +18493,13 @@ namespace BinaryNinja {
/*!
\ingroup pluginmanager
*/
- class RepositoryManager :
- public CoreRefCountObject<BNRepositoryManager, BNNewRepositoryManagerReference, BNFreeRepositoryManager>
+ class RepositoryManager
{
public:
- 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
+ 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
const std::string& repoPath); // Relative path within the repositories directory
Ref<Repository> GetDefaultRepository();
};