mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-07 15:20:31 +00:00
35 lines
533 B
C++
35 lines
533 B
C++
#ifndef LIBLLARP_CONFIG_HPP
|
|
#define LIBLLARP_CONFIG_HPP
|
|
#include <list>
|
|
#include <string>
|
|
|
|
#include <llarp/config.h>
|
|
|
|
namespace llarp
|
|
{
|
|
struct Config
|
|
{
|
|
typedef std::list< std::pair< std::string, std::string > > section_t;
|
|
|
|
section_t router;
|
|
section_t network;
|
|
section_t netdb;
|
|
section_t dns;
|
|
section_t iwp_links;
|
|
section_t connect;
|
|
section_t services;
|
|
section_t system;
|
|
|
|
bool
|
|
Load(const char *fname);
|
|
};
|
|
|
|
} // namespace llarp
|
|
|
|
struct llarp_config
|
|
{
|
|
llarp::Config impl;
|
|
};
|
|
|
|
#endif
|