From 72fcf44f3731ade3cf1310da55f633f1cb9069ce Mon Sep 17 00:00:00 2001 From: 0cyn Date: Wed, 22 Oct 2025 02:37:05 -0400 Subject: Refactor Plugin Load/Management to support upcoming changes --- binaryninjaapi.h | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'binaryninjaapi.h') 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 + class RepoPlugin : public CoreRefCountObject { public: - RepoPlugin(BNRepoPlugin* plugin); + RepoPlugin(BNPlugin* plugin); PluginStatus GetPluginStatus() const; std::vector GetApis() const; std::vector GetInstallPlatforms() const; @@ -18493,17 +18493,13 @@ namespace BinaryNinja { /*! \ingroup pluginmanager */ - class RepositoryManager : - public CoreRefCountObject + class RepositoryManager { public: - RepositoryManager(const std::string& enabledPluginsPath); - RepositoryManager(BNRepositoryManager* repoManager); - RepositoryManager(); - bool CheckForUpdates(); - std::vector> GetRepositories(); - Ref GetRepositoryByPath(const std::string& repoName); - bool AddRepository(const std::string& url, // URL to raw plugins.json file + static bool CheckForUpdates(); + static std::vector> GetRepositories(); + static Ref 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 GetDefaultRepository(); }; -- cgit v1.3.1