blob: fbb9a0dc81e645bc7155bea9e19b92f85b978f7e [file] [log] [blame]
Deepak Kodihalli5de09572017-05-16 23:53:40 -05001#include <sdbusplus/bus.hpp>
2#include <sdbusplus/server/manager.hpp>
3#include "settings_manager.hpp"
4#include "config.h"
5
6int main(int argc, char *argv[])
7{
8 auto bus = sdbusplus::bus::new_default();
9
Deepak Kodihalli97112112017-05-31 01:18:14 -050010 // Add sdbusplus ObjectManager. The settings objects are spread across
11 // the object namespace and are not under a (settings) root. Hence register
12 // "/" as the path.
13 sdbusplus::server::manager::manager objManager(bus, "/");
Deepak Kodihalli7a6f2522017-06-23 23:05:47 -050014 bus.request_name(SETTINGS_BUSNAME);
Deepak Kodihalli5de09572017-05-16 23:53:40 -050015
16 phosphor::settings::Manager mgr(bus);
17
Deepak Kodihalli5de09572017-05-16 23:53:40 -050018 while(true)
19 {
20 bus.process_discard();
21 bus.wait();
22 }
23
24 return 0;
25}