1414db5a8SPatrick Venture #include "settings_manager.hpp"
2414db5a8SPatrick Venture 
35de0957cSDeepak Kodihalli #include <sdbusplus/bus.hpp>
45de0957cSDeepak Kodihalli #include <sdbusplus/server/manager.hpp>
55de0957cSDeepak Kodihalli 
main(int argc,char * argv[])6*cfd49eb8SJagpal Singh Gill int main([[maybe_unused]] int argc, [[maybe_unused]] char* argv[])
75de0957cSDeepak Kodihalli {
85de0957cSDeepak Kodihalli     auto bus = sdbusplus::bus::new_default();
95de0957cSDeepak Kodihalli 
109711211cSDeepak Kodihalli     // Add sdbusplus ObjectManager. The settings objects are spread across
119711211cSDeepak Kodihalli     // the object namespace and are not under a (settings) root. Hence register
129711211cSDeepak Kodihalli     // "/" as the path.
137c4181cfSPatrick Williams     sdbusplus::server::manager_t objManager(bus, "/");
147a6f2526SDeepak Kodihalli     bus.request_name(SETTINGS_BUSNAME);
155de0957cSDeepak Kodihalli 
165de0957cSDeepak Kodihalli     phosphor::settings::Manager mgr(bus);
175de0957cSDeepak Kodihalli 
185de0957cSDeepak Kodihalli     while (true)
195de0957cSDeepak Kodihalli     {
205de0957cSDeepak Kodihalli         bus.process_discard();
215de0957cSDeepak Kodihalli         bus.wait();
225de0957cSDeepak Kodihalli     }
235de0957cSDeepak Kodihalli 
245de0957cSDeepak Kodihalli     return 0;
255de0957cSDeepak Kodihalli }
26