lokinet/llarp/config.hpp
2018-01-25 10:38:14 -05:00

33 lines
424 B
C++

#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;
section_t links;
bool Load(const char * fname);
};
}
extern "C" {
struct sarp_config
{
sarp::Config impl;
};
}
#endif