commit cd2cae1b6bc72935a45933ebeec5a6b8bc898293
parent 827cffa45b156de60415d724395258a5293ecaca
Author: cfillion <cfillion@users.noreply.github.com>
Date: Sat, 16 Sep 2017 20:53:18 -0400
api: rename ReaPack_Commit to ReaPack_ProcessQueue
Diffstat:
4 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/api.hpp b/src/api.hpp
@@ -43,8 +43,8 @@ private:
namespace API {
// api_misc.cpp
extern APIFunc BrowsePackages;
- extern APIFunc Commit;
extern APIFunc CompareVersions;
+ extern APIFunc ProcessQueue;
// api_package.cpp
extern APIFunc AboutInstalledPackage;
diff --git a/src/api_misc.cpp b/src/api_misc.cpp
@@ -30,12 +30,6 @@ R"(Opens the package browser with the given filter string.)",
browser->setFilter(filter);
});
-DEFINE_API(void, Commit, ((bool, refreshUI)),
-R"(Run pending tasks and save the configuration file. If refreshUI is true the browser and manager windows are guaranteed to be refreshed (otherwise it depends on which tasks are performed).)",
-{
- g_reapack->commitConfig(refreshUI);
-});
-
DEFINE_API(int, CompareVersions, ((const char*, ver1))((const char*, ver2))
((char*, errorOut))((int, errorOut_sz)),
R"(Returns 0 if both versions are equal, a positive value if ver1 is higher than ver2 and a negative value otherwise.)",
@@ -51,3 +45,9 @@ R"(Returns 0 if both versions are equal, a positive value if ver1 is higher than
return a.compare(b);
});
+
+DEFINE_API(void, ProcessQueue, ((bool, refreshUI)),
+R"(Run pending operations and save the configuration file. If refreshUI is true the browser and manager windows are guaranteed to be refreshed (otherwise it depends on which operations are in the queue).)",
+{
+ g_reapack->commitConfig(refreshUI);
+});
diff --git a/src/api_repo.cpp b/src/api_repo.cpp
@@ -41,7 +41,7 @@ The repository index is downloaded asynchronously if the cached copy doesn't exi
DEFINE_API(bool, AddSetRepository, ((const char*, name))((const char*, url))
((bool, enable))((int, autoInstall))((char*, errorOut))((int, errorOut_sz)),
-R"(Add or modify a repository. Set url to nullptr (or empty string in Lua) to keep the existing URL. Call <a href="#ReaPack_Commit">ReaPack_Commit(true)</a> when done to process the new list and update the GUI.
+R"(Add or modify a repository. Set url to nullptr (or empty string in Lua) to keep the existing URL. Call <a href="#ReaPack_ProcessQueue">ReaPack_ProcessQueue(true)</a> when done to process the new list and update the GUI.
autoInstall: usually set to 2 (obey user setting).)",
{
diff --git a/src/main.cpp b/src/main.cpp
@@ -155,13 +155,13 @@ static void setupAPI()
g_reapack->setupAPI(&API::AboutRepository);
g_reapack->setupAPI(&API::AddSetRepository);
g_reapack->setupAPI(&API::BrowsePackages);
- g_reapack->setupAPI(&API::Commit);
g_reapack->setupAPI(&API::CompareVersions);
g_reapack->setupAPI(&API::EnumOwnedFiles);
g_reapack->setupAPI(&API::FreeEntry);
g_reapack->setupAPI(&API::GetEntryInfo);
g_reapack->setupAPI(&API::GetOwner);
g_reapack->setupAPI(&API::GetRepositoryInfo);
+ g_reapack->setupAPI(&API::ProcessQueue);
}
extern "C" REAPER_PLUGIN_DLL_EXPORT int REAPER_PLUGIN_ENTRYPOINT(