Andrew Geissler | 3652902 | 2016-11-29 15:23:54 -0600 | [diff] [blame] | 1 | #include <cstdlib> |
| 2 | #include <iostream> |
| 3 | #include <exception> |
| 4 | #include <sdbusplus/bus.hpp> |
| 5 | #include "config.h" |
| 6 | #include "host_state_manager.hpp" |
| 7 | |
| 8 | int main(int argc, char *argv[]) |
| 9 | { |
| 10 | auto bus = sdbusplus::bus::new_default(); |
| 11 | |
| 12 | phosphor::state::manager::Host manager(bus, |
| 13 | BUSNAME, |
| 14 | OBJPATH); |
| 15 | // Add sdbusplus ObjectManager. |
| 16 | sdbusplus::server::manager::manager objManager(bus, OBJPATH); |
| 17 | |
| 18 | bus.request_name(BUSNAME); |
| 19 | |
| 20 | while(true) |
| 21 | { |
| 22 | bus.process_discard(); |
| 23 | bus.wait(); |
| 24 | } |
| 25 | return 0; |
| 26 | } |