mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-07 15:20:31 +00:00
33 lines
424 B
C++
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
|