Deepak Kodihalli | 5de0957 | 2017-05-16 23:53:40 -0500 | [diff] [blame] | 1 | #include <sdbusplus/bus.hpp> |
| 2 | #include <sdbusplus/server/manager.hpp> |
| 3 | #include "settings_manager.hpp" |
| 4 | #include "config.h" |
| 5 | |
| 6 | int main(int argc, char *argv[]) |
| 7 | { |
| 8 | auto bus = sdbusplus::bus::new_default(); |
| 9 | |
| 10 | // Add sdbusplus ObjectManager for the settings root. |
| 11 | sdbusplus::server::manager::manager objManager(bus, SETTINGS_ROOT); |
| 12 | |
| 13 | phosphor::settings::Manager mgr(bus); |
| 14 | |
| 15 | bus.request_name(SETTINGS_BUSNAME); |
| 16 | |
| 17 | while(true) |
| 18 | { |
| 19 | bus.process_discard(); |
| 20 | bus.wait(); |
| 21 | } |
| 22 | |
| 23 | return 0; |
| 24 | } |