2018-06-23 00:00:44 +00:00
|
|
|
#ifndef LLARP_SERVICE_HPP
|
|
|
|
#define LLARP_SERVICE_HPP
|
2018-07-06 16:08:30 +00:00
|
|
|
#include <iostream>
|
2018-07-09 17:32:11 +00:00
|
|
|
#include <llarp/service/Identity.hpp>
|
|
|
|
#include <llarp/service/Intro.hpp>
|
|
|
|
#include <llarp/service/IntroSet.hpp>
|
|
|
|
#include <llarp/service/endpoint.hpp>
|
|
|
|
#include <llarp/service/types.hpp>
|
2018-06-29 14:25:09 +00:00
|
|
|
#include <set>
|
2018-07-06 16:08:30 +00:00
|
|
|
#include <string>
|
2018-06-23 00:00:44 +00:00
|
|
|
|
|
|
|
namespace llarp
|
|
|
|
{
|
|
|
|
namespace service
|
|
|
|
{
|
2018-07-09 17:32:11 +00:00
|
|
|
struct Config
|
2018-06-29 14:25:09 +00:00
|
|
|
{
|
2018-07-09 17:32:11 +00:00
|
|
|
typedef std::list< std::pair< std::string, std::string > >
|
|
|
|
section_values_t;
|
|
|
|
typedef std::pair< std::string, section_values_t > section_t;
|
2018-07-06 16:08:30 +00:00
|
|
|
|
2018-07-09 17:32:11 +00:00
|
|
|
std::list< section_t > services;
|
2018-07-06 16:08:30 +00:00
|
|
|
bool
|
2018-07-09 17:32:11 +00:00
|
|
|
Load(const std::string& fname);
|
2018-06-23 00:00:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}; // namespace service
|
|
|
|
} // namespace llarp
|
|
|
|
|
|
|
|
#endif
|