summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2017-03-28 19:07:34 -0400
committerPeter LaFosse <peter@vector35.com>2017-03-28 19:07:51 -0400
commite0f3069e8c01379ee6fca69c74ae98d8bf754535 (patch)
tree7d0f42d906886933f59c43265cc13636508ac852 /binaryninjaapi.h
parentc4f968cad46c51a307396ee4f21f60aa51393fe4 (diff)
Cleanup of some of the plugin manager APIs
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h28
1 files changed, 5 insertions, 23 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h
index 544c2e10..bab26345 100644
--- a/binaryninjaapi.h
+++ b/binaryninjaapi.h
@@ -2591,22 +2591,6 @@ namespace BinaryNinja
class RepoPlugin: public CoreRefCountObject<BNRepoPlugin, BNNewPluginReference, BNFreePlugin>
{
public:
- RepoPlugin(const std::string& path,
- bool installed,
- bool enabled,
- const std::string& api,
- const std::string& author,
- const std::string& description,
- const std::string& license,
- const std::string& licenseText,
- const std::string& longdescription,
- const std::string& minimimVersions,
- const std::string& name,
- const std::vector<PluginType>& pluginTypes,
- const std::string& url,
- const std::string& version,
- const std::string& repoPath,
- const std::string& gitModulesPath);
RepoPlugin(BNRepoPlugin* plugin);
std::string GetPath() const;
bool IsInstalled() const;
@@ -2630,11 +2614,6 @@ namespace BinaryNinja
class Repository: public CoreRefCountObject<BNRepository, BNNewRepositoryReference, BNFreeRepository>
{
public:
- Repository(const std::string& url, // URL of the git repository containing the plugins
- const std::string& repoPath, // Name of the directory to store this repository within the repositories directory
- const std::string& repoManifest="plugins", // Name of the of the inner directory and .json file
- const std::string& localReference="master",
- const std::string& remoteReference="origin");
Repository(BNRepository* repository);
~Repository();
std::string GetUrl() const;
@@ -2652,14 +2631,17 @@ namespace BinaryNinja
{
bool m_core;
public:
- RepositoryManager(std::vector<Ref<Repository>>& repoInfo, const std::string& enabledPluginsPath);
+ RepositoryManager(const std::string& enabledPluginsPath);
RepositoryManager(BNRepositoryManager* repoManager);
RepositoryManager();
~RepositoryManager();
bool CheckForUpdates();
std::vector<Ref<Repository>> GetRepositories();
Ref<Repository> GetRepositoryByPath(const std::string& repoName);
- bool AddRepository(Ref<Repository> repo);
+ bool AddRepository(const std::string& url,
+ const std::string& repoPath, // Relative path within the repositories directory
+ const std::string& localReference="master",
+ const std::string& remoteReference="origin");
bool EnablePlugin(const std::string& repoName, const std::string& pluginPath);
bool DisablePlugin(const std::string& repoName, const std::string& pluginPath);
bool InstallPlugin(const std::string& repoName, const std::string& pluginPath);