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/llarp/config.hpp

28 lines
416 B
C++

#ifndef LIBLLARP_CONFIG_HPP
#define LIBLLARP_CONFIG_HPP
#include <map>
#include <string>
#include <llarp/config.h>
namespace llarp {
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);
};
} // namespace llarp
extern "C" {
struct llarp_config {
llarp::Config impl;
};
}
#endif