blob: 0d775e2c8507d04354817df9a1ae506a6e93a83c [file] [log] [blame]
#include <sdbusplus/bus.hpp>
#include <sdbusplus/server/manager.hpp>
#include "settings_manager.hpp"
#include "config.h"
int main(int argc, char *argv[])
{
auto bus = sdbusplus::bus::new_default();
// Add sdbusplus ObjectManager. The settings objects are spread across
// the object namespace and are not under a (settings) root. Hence register
// "/" as the path.
sdbusplus::server::manager::manager objManager(bus, "/");
phosphor::settings::Manager mgr(bus);
bus.request_name(SETTINGS_BUSNAME);
while(true)
{
bus.process_discard();
bus.wait();
}
return 0;
}