1*414db5a8SPatrick Venture #include "config.h"
2*414db5a8SPatrick Venture 
3*414db5a8SPatrick Venture #include "settings_manager.hpp"
4*414db5a8SPatrick Venture 
55de0957cSDeepak Kodihalli #include <sdbusplus/bus.hpp>
65de0957cSDeepak Kodihalli #include <sdbusplus/server/manager.hpp>
75de0957cSDeepak Kodihalli 
85de0957cSDeepak Kodihalli int main(int argc, char* argv[])
95de0957cSDeepak Kodihalli {
105de0957cSDeepak Kodihalli     auto bus = sdbusplus::bus::new_default();
115de0957cSDeepak Kodihalli 
129711211cSDeepak Kodihalli     // Add sdbusplus ObjectManager. The settings objects are spread across
139711211cSDeepak Kodihalli     // the object namespace and are not under a (settings) root. Hence register
149711211cSDeepak Kodihalli     // "/" as the path.
159711211cSDeepak Kodihalli     sdbusplus::server::manager::manager objManager(bus, "/");
167a6f2526SDeepak Kodihalli     bus.request_name(SETTINGS_BUSNAME);
175de0957cSDeepak Kodihalli 
185de0957cSDeepak Kodihalli     phosphor::settings::Manager mgr(bus);
195de0957cSDeepak Kodihalli 
205de0957cSDeepak Kodihalli     while (true)
215de0957cSDeepak Kodihalli     {
225de0957cSDeepak Kodihalli         bus.process_discard();
235de0957cSDeepak Kodihalli         bus.wait();
245de0957cSDeepak Kodihalli     }
255de0957cSDeepak Kodihalli 
265de0957cSDeepak Kodihalli     return 0;
275de0957cSDeepak Kodihalli }
28