Gunnar Mills | 01a323b | 2017-01-18 09:48:13 -0600 | [diff] [blame] | 1 | #include <iostream> |
| 2 | #include <cstdlib> |
| 3 | #include <exception> |
| 4 | #include <sdbusplus/bus.hpp> |
| 5 | #include "config.h" |
| 6 | #include "version_software_manager.hpp" |
| 7 | |
| 8 | int main(int argc, char* argv[]) |
| 9 | { |
| 10 | auto bus = sdbusplus::bus::new_default(); |
| 11 | |
| 12 | // Add sdbusplus ObjectManager. |
| 13 | sdbusplus::server::manager::manager objManager(bus, |
| 14 | SOFTWARE_OBJPATH); |
| 15 | |
| 16 | phosphor::software::manager::Version manager(bus, |
| 17 | SOFTWARE_OBJPATH); |
| 18 | |
| 19 | bus.request_name(VERSION_BUSNAME); |
| 20 | |
| 21 | while (true) |
| 22 | { |
| 23 | bus.process_discard(); |
| 24 | bus.wait(); |
| 25 | } |
| 26 | return 0; |
| 27 | } |