reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

commit dcecc5f29b1adfa38ec1309298edf8ad877932a7
parent 6cbd926c125b162e8ca8a52f87d59128a7f26c13
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Sun,  4 Jun 2017 04:28:13 -0400

api: add protectedOut parameter to GetRepositoryInfo

Diffstat:
Msrc/api.cpp | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/api.cpp b/src/api.cpp @@ -289,7 +289,7 @@ Delete the returned object from memory after use with <a href="#ReaPack_FreeEntr DEFINE_API(bool, GetRepositoryInfo, ((const char*, name)) ((char*, urlOut))((int, urlOut_sz)) - ((bool*, enabledOut))((int*, autoInstallOut)), + ((bool*, enabledOut))((int*, autoInstallOut))((bool*, protectedOut)), R"(Get the infos of the given repository. autoInstall: 0=manual, 1=when sychronizing, 2=obey user setting)", @@ -305,6 +305,8 @@ autoInstall: 0=manual, 1=when sychronizing, 2=obey user setting)", *enabledOut = remote.isEnabled(); if(autoInstallOut) *autoInstallOut = boost::lexical_cast<int>(remote.autoInstall()); + if(protectedOut) + *protectedOut = remote.isProtected(); return true; });