15de0957cSDeepak Kodihalli #include <sdbusplus/bus.hpp> 25de0957cSDeepak Kodihalli #include <sdbusplus/server/manager.hpp> 35de0957cSDeepak Kodihalli #include "settings_manager.hpp" 45de0957cSDeepak Kodihalli #include "config.h" 55de0957cSDeepak Kodihalli 65de0957cSDeepak Kodihalli int main(int argc, char *argv[]) 75de0957cSDeepak Kodihalli { 85de0957cSDeepak Kodihalli auto bus = sdbusplus::bus::new_default(); 95de0957cSDeepak Kodihalli 10*9711211cSDeepak Kodihalli // Add sdbusplus ObjectManager. The settings objects are spread across 11*9711211cSDeepak Kodihalli // the object namespace and are not under a (settings) root. Hence register 12*9711211cSDeepak Kodihalli // "/" as the path. 13*9711211cSDeepak Kodihalli sdbusplus::server::manager::manager objManager(bus, "/"); 145de0957cSDeepak Kodihalli 155de0957cSDeepak Kodihalli phosphor::settings::Manager mgr(bus); 165de0957cSDeepak Kodihalli 175de0957cSDeepak Kodihalli bus.request_name(SETTINGS_BUSNAME); 185de0957cSDeepak Kodihalli 195de0957cSDeepak Kodihalli while(true) 205de0957cSDeepak Kodihalli { 215de0957cSDeepak Kodihalli bus.process_discard(); 225de0957cSDeepak Kodihalli bus.wait(); 235de0957cSDeepak Kodihalli } 245de0957cSDeepak Kodihalli 255de0957cSDeepak Kodihalli return 0; 265de0957cSDeepak Kodihalli } 27