mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-05 21:20:38 +00:00
22 lines
415 B
C++
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
|