commit 2af18f7c73427e80f7a139b1330786809e666a53
parent 3ec1dd4f9420f9e508bcb49ba28dcd17c1ba4ebb
Author: cfillion <cfillion@users.noreply.github.com>
Date: Sun, 4 Jun 2017 04:14:23 -0400
api: rename new functions to AddSetRepository and GetRepositoryInfo
Diffstat:
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/api.cpp b/src/api.cpp
@@ -287,7 +287,7 @@ DEFINE_API(PackageEntry*, GetOwner, ((const char*, fn))((char*, errorOut))((int,
}
});
-DEFINE_API(bool, GetRepository, ((const char*, name))
+DEFINE_API(bool, GetRepositoryInfo, ((const char*, name))
((char*, urlOut))((int, urlOut_sz))
((bool*, enabledOut))((int*, autoInstallOut)), R"(
Get the infos of the given repository.
@@ -309,7 +309,7 @@ DEFINE_API(bool, GetRepository, ((const char*, name))
return true;
});
-DEFINE_API(bool, SetRepository, ((const char*, name))((const char*, url))
+DEFINE_API(bool, AddSetRepository, ((const char*, name))((const char*, url))
((bool, enabled))((int, autoInstall))((bool, commit))
((char*, errorOut))((int, errorOut_sz)), R"(
Add or modify a repository. Set commit to true for the last call to save the new list and update the GUI.
diff --git a/src/api.hpp b/src/api.hpp
@@ -47,14 +47,14 @@ namespace API {
extern APIFunc AboutInstalledPackage;
extern APIFunc AboutRepository;
+ extern APIFunc AddSetRepository;
extern APIFunc CompareVersions;
extern APIFunc EnumOwnedFiles;
extern APIFunc EnumRepositories;
extern APIFunc FreeEntry;
extern APIFunc GetEntryInfo;
extern APIFunc GetOwner;
- extern APIFunc GetRepository;
- extern APIFunc SetRepository;
+ extern APIFunc GetRepositoryInfo;
};
#endif
diff --git a/src/main.cpp b/src/main.cpp
@@ -162,14 +162,14 @@ static void setupAPI()
{
reapack->setupAPI(&API::AboutInstalledPackage);
reapack->setupAPI(&API::AboutRepository);
+ reapack->setupAPI(&API::AddSetRepository);
reapack->setupAPI(&API::CompareVersions);
reapack->setupAPI(&API::EnumOwnedFiles);
reapack->setupAPI(&API::EnumRepositories);
reapack->setupAPI(&API::FreeEntry);
reapack->setupAPI(&API::GetEntryInfo);
reapack->setupAPI(&API::GetOwner);
- reapack->setupAPI(&API::GetRepository);
- reapack->setupAPI(&API::SetRepository);
+ reapack->setupAPI(&API::GetRepositoryInfo);
}
extern "C" REAPER_PLUGIN_DLL_EXPORT int REAPER_PLUGIN_ENTRYPOINT(