blob: 78a0ebef9f861ac06ea8013d82d996307bd68a2a [file] [log] [blame]
Deepak Kodihalli5de09572017-05-16 23:53:40 -05001#include "config.h"
2
Patrick Venture414db5a2018-11-01 16:46:46 -07003#include "settings_manager.hpp"
4
5#include <sdbusplus/bus.hpp>
6#include <sdbusplus/server/manager.hpp>
7
8int main(int argc, char* argv[])
Deepak Kodihalli5de09572017-05-16 23:53:40 -05009{
10 auto bus = sdbusplus::bus::new_default();
11
Deepak Kodihalli97112112017-05-31 01:18:14 -050012 // Add sdbusplus ObjectManager. The settings objects are spread across
13 // the object namespace and are not under a (settings) root. Hence register
14 // "/" as the path.
Patrick Williams7c4181c2022-07-22 19:26:52 -050015 sdbusplus::server::manager_t objManager(bus, "/");
Deepak Kodihalli7a6f2522017-06-23 23:05:47 -050016 bus.request_name(SETTINGS_BUSNAME);
Deepak Kodihalli5de09572017-05-16 23:53:40 -050017
18 phosphor::settings::Manager mgr(bus);
19
Patrick Venture414db5a2018-11-01 16:46:46 -070020 while (true)
Deepak Kodihalli5de09572017-05-16 23:53:40 -050021 {
22 bus.process_discard();
23 bus.wait();
24 }
25
26 return 0;
27}