You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lokinet/libsarp/config.hpp

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