blob: fe9062e97e3052ac195bb19ee3522bf46feefe56 [file] [log] [blame]
Lei YU01539e72019-07-31 10:57:38 +08001#include "config.h"
2
3#include "item_updater.hpp"
4
5#include <phosphor-logging/log.hpp>
6#include <sdbusplus/bus.hpp>
7#include <sdbusplus/server/manager.hpp>
8#include <system_error>
9
10int main(int /* argc */, char* /* argv */[])
Lei YUe065f612019-07-30 14:10:52 +080011{
Lei YU01539e72019-07-31 10:57:38 +080012 auto bus = sdbusplus::bus::new_default();
13
14 // Add sdbusplus ObjectManager.
15 sdbusplus::server::manager::manager objManager(bus, SOFTWARE_OBJPATH);
16
17 phosphor::software::updater::ItemUpdater updater(bus, SOFTWARE_OBJPATH);
18
19 bus.request_name(BUSNAME_UPDATER);
20
21 while (true)
22 {
23 bus.process_discard();
24 bus.wait();
25 }
Lei YUe065f612019-07-30 14:10:52 +080026 return 0;
27}