lokinet/llarp/config.hpp

33 lines
424 B
C++
Raw Normal View History

2017-11-28 14:05:31 +00:00
#ifndef LIBSARP_CONFIG_HPP
#define LIBSARP_CONFIG_HPP
#include <map>
#include <string>
#include <sarp/config.h>
namespace sarp
{
struct Config
{
typedef std::map<std::string, std::string> section_t;
section_t router;
section_t network;
section_t netdb;
2018-01-19 16:51:27 +00:00
section_t links;
2017-11-28 14:05:31 +00:00
bool Load(const char * fname);
};
}
extern "C" {
struct sarp_config
{
sarp::Config impl;
};
}
#endif