Adriana Kobylak | 2d8fa22 | 2017-03-15 12:34:32 -0500 | [diff] [blame] | 1 | #include <sdbusplus/bus.hpp> |
| 2 | #include <sdbusplus/server/manager.hpp> |
| 3 | #include "config.h" |
| 4 | #include "item_updater.hpp" |
| 5 | |
| 6 | int main(int argc, char* argv[]) |
| 7 | { |
| 8 | auto bus = sdbusplus::bus::new_default(); |
| 9 | |
| 10 | // Add sdbusplus ObjectManager. |
| 11 | sdbusplus::server::manager::manager objManager(bus, SOFTWARE_OBJPATH); |
| 12 | |
Michael Tritz | dd961b6 | 2017-05-17 14:07:03 -0500 | [diff] [blame] | 13 | openpower::software::updater::ItemUpdater updater(bus, SOFTWARE_OBJPATH); |
Adriana Kobylak | 2d8fa22 | 2017-03-15 12:34:32 -0500 | [diff] [blame] | 14 | |
| 15 | bus.request_name(BUSNAME_UPDATER); |
| 16 | |
| 17 | while (true) |
| 18 | { |
| 19 | bus.process_discard(); |
| 20 | bus.wait(); |
| 21 | } |
| 22 | return 0; |
| 23 | } |