aboutsummaryrefslogtreecommitdiff
path: root/include/Package.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-01-06 08:33:49 +0100
committerdec05eba <dec05eba@protonmail.com>2018-01-06 08:36:08 +0100
commitea17671d7fe9ece8a33bdbc2f1d7bdf68bbccb69 (patch)
tree81ababa378263db69a4e71cfa5fe3d5bdeb78761 /include/Package.hpp
parent8e6c9ffd28a17bcb81016412b23cffc490f02dab (diff)
Change package list format
Diffstat (limited to 'include/Package.hpp')
-rw-r--r--include/Package.hpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/Package.hpp b/include/Package.hpp
index 475e11b..131e87f 100644
--- a/include/Package.hpp
+++ b/include/Package.hpp
@@ -4,6 +4,7 @@
#include "../external/rapidjson/document.h"
#include "Result.hpp"
#include <string>
+#include <vector>
namespace sibs
{
@@ -25,6 +26,14 @@ namespace sibs
LIBRARY
};
+ struct PackageMetadata
+ {
+ std::string description;
+ std::string version;
+ std::vector<std::string> platforms;
+ std::vector<std::string> urls;
+ };
+
class Package
{
public:
@@ -39,7 +48,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);
+ static Result<std::string> getPackageUrl(const char *packageName, const char *packageVersion, const char *platform);
};
}