mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-22 22:23:44 +00:00
committed by
Konstantin Pastbin
parent
c9cbb64f12
commit
76ffc99abd
21
libs/platform/servers_list.hpp
Normal file
21
libs/platform/servers_list.hpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace downloader
|
||||
{
|
||||
// Dynamic configuration from MetaServer.
|
||||
struct MetaConfig
|
||||
{
|
||||
using ServersList = std::vector<std::string>;
|
||||
ServersList m_serversList;
|
||||
using SettingsMap = std::map<std::string, std::string>;
|
||||
SettingsMap m_settings;
|
||||
std::string m_productsConfig;
|
||||
};
|
||||
|
||||
std::optional<MetaConfig> ParseMetaConfig(std::string const & jsonStr);
|
||||
} // namespace downloader
|
||||
Reference in New Issue
Block a user