1414db5a8SPatrick Venture #include "config.h" 2414db5a8SPatrick Venture 3414db5a8SPatrick Venture #include "settings_manager.hpp" 4414db5a8SPatrick Venture 55de0957cSDeepak Kodihalli #include <sdbusplus/bus.hpp> 65de0957cSDeepak Kodihalli #include <sdbusplus/server/manager.hpp> 75de0957cSDeepak Kodihalli 8*cfd49eb8SJagpal Singh Gill int main([[maybe_unused]] int argc, [[maybe_unused]] 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. 157c4181cfSPatrick Williams sdbusplus::server::manager_t 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