2018-07-11 16:11:19 +00:00
|
|
|
#ifndef LLARP_SERVICE_CONFIG_HPP
|
|
|
|
#define LLARP_SERVICE_CONFIG_HPP
|
2019-07-02 21:28:28 +00:00
|
|
|
|
|
|
|
#include <util/string_view.hpp>
|
|
|
|
|
2018-07-11 16:11:19 +00:00
|
|
|
#include <list>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace llarp
|
|
|
|
{
|
|
|
|
namespace service
|
|
|
|
{
|
|
|
|
struct Config
|
|
|
|
{
|
2018-11-22 23:59:03 +00:00
|
|
|
using section_values_t =
|
|
|
|
std::list< std::pair< std::string, std::string > >;
|
|
|
|
using section_t = std::pair< std::string, section_values_t >;
|
2018-07-11 16:11:19 +00:00
|
|
|
|
|
|
|
std::list< section_t > services;
|
|
|
|
|
|
|
|
bool
|
2019-07-02 21:28:28 +00:00
|
|
|
Load(string_view fname);
|
2018-07-11 16:11:19 +00:00
|
|
|
};
|
2018-07-17 04:37:50 +00:00
|
|
|
} // namespace service
|
|
|
|
} // namespace llarp
|
2018-11-22 23:59:03 +00:00
|
|
|
#endif
|