aboutsummaryrefslogtreecommitdiff
path: root/include/Package.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-10-01 04:51:42 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:39:33 +0200
commite2d947ccd6947c9190569fedbb4a90505b5fe9a5 (patch)
tree943167a2aae91af3164e5cd80a96b08826952d23 /include/Package.hpp
parent63cedcab19474cae0a4b1322600355ddc23d56d0 (diff)
Allow specifying project platform without arch
Diffstat (limited to 'include/Package.hpp')
-rw-r--r--include/Package.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/Package.hpp b/include/Package.hpp
index 131e87f..dbae5f2 100644
--- a/include/Package.hpp
+++ b/include/Package.hpp
@@ -2,6 +2,7 @@
#define SIBS_PACKAGE_HPP
#include "../external/rapidjson/document.h"
+#include "Platform.hpp"
#include "Result.hpp"
#include <string>
#include <vector>
@@ -48,7 +49,7 @@ namespace sibs
* TODO: If we fail to fetch package from first url, try other other ones in the list (or if the first url is too slow / takes too long to respond).
* TODO: Add version matching with wildcard etc. If we specify "1.2.*", then it should get the latest version that matches; etc...
*/
- static Result<std::string> getPackageUrl(const char *packageName, const char *packageVersion, const char *platform);
+ static Result<std::string> getPackageUrl(const char *packageName, const char *packageVersion, Platform platform);
};
}