lokinet/llarp/service/config.cpp
2019-01-11 01:19:49 +00:00

22 lines
415 B
C++

#include <service/config.hpp>
#include <util/ini.hpp>
namespace llarp
{
namespace service
{
bool
Config::Load(const std::string& fname)
{
ini::Parser parser(fname);
for(const auto& sec : parser.top().ordered_sections)
{
services.push_back({sec->first, sec->second.values});
}
return services.size() > 0;
}
} // namespace service
} // namespace llarp