summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
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();
};