aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/GlobalLib.hpp2
-rw-r--r--include/Result.hpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/GlobalLib.hpp b/include/GlobalLib.hpp
index ca542f9..78511c3 100644
--- a/include/GlobalLib.hpp
+++ b/include/GlobalLib.hpp
@@ -17,7 +17,7 @@ namespace sibs
};
static Result<bool> validatePackageExists(const std::string &globalLibRootDir, const std::string &name);
- static Result<std::string> getStaticLibsLinkerFlags(const std::string &globalLibRootDir, const std::string &name, const std::string &version, LinkerFlagCallbackFunc linkerFlagCallbackFunc);
+ static Result<std::string> getLibsLinkerFlags(const std::string &globalLibRootDir, const std::string &name, const std::string &version, LinkerFlagCallbackFunc staticLinkerFlagCallbackFunc, LinkerFlagCallbackFunc dynamicLinkerFlagCallbackFunc);
static Result<bool> downloadDependency(const Dependency &dependency);
};
}
diff --git a/include/Result.hpp b/include/Result.hpp
index eb0aa01..e8f4d12 100644
--- a/include/Result.hpp
+++ b/include/Result.hpp
@@ -53,6 +53,8 @@ namespace sibs
{
return errorCode;
}
+
+ operator bool () { return isOk(); }
private:
Result(const T &_value = T()) : value(_value) {}
private: