Gunnar Mills | 701e021 | 2017-04-03 11:21:27 -0500 | [diff] [blame] | 1 | #include <sdbusplus/bus.hpp> |
| 2 | #include "config.h" |
| 3 | #include "download_manager.hpp" |
| 4 | |
| 5 | int main(int argc, char* argv[]) |
| 6 | { |
| 7 | auto bus = sdbusplus::bus::new_default(); |
| 8 | |
| 9 | // Add sdbusplus ObjectManager. |
| 10 | sdbusplus::server::manager::manager objManager(bus, |
| 11 | SOFTWARE_OBJPATH); |
| 12 | |
| 13 | phosphor::software::manager::Download manager(bus, |
| 14 | SOFTWARE_OBJPATH); |
| 15 | |
| 16 | bus.request_name(DOWNLOAD_BUSNAME); |
| 17 | |
| 18 | while (true) |
| 19 | { |
| 20 | bus.process_discard(); |
| 21 | bus.wait(); |
| 22 | } |
| 23 | return 0; |
| 24 | } |