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. |
Adriana Kobylak | 2285fe0 | 2018-02-27 15:36:59 -0600 | [diff] [blame] | 10 | sdbusplus::server::manager::manager objManager(bus, SOFTWARE_OBJPATH); |
Gunnar Mills | 701e021 | 2017-04-03 11:21:27 -0500 | [diff] [blame] | 11 | |
Adriana Kobylak | 2285fe0 | 2018-02-27 15:36:59 -0600 | [diff] [blame] | 12 | phosphor::software::manager::Download manager(bus, SOFTWARE_OBJPATH); |
Gunnar Mills | 701e021 | 2017-04-03 11:21:27 -0500 | [diff] [blame] | 13 | |
| 14 | bus.request_name(DOWNLOAD_BUSNAME); |
| 15 | |
| 16 | while (true) |
| 17 | { |
| 18 | bus.process_discard(); |
| 19 | bus.wait(); |
| 20 | } |
| 21 | return 0; |
| 22 | } |