blob: 42343bbaea74d443d9d2960b4a3cda2669afe900 [file] [log] [blame]
Gunnar Millsec1b41c2017-05-02 12:20:36 -05001#include <sdbusplus/bus.hpp>
2#include <sdbusplus/server/manager.hpp>
3#include "config.h"
4#include "item_updater.hpp"
5
6int 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 Tritz37a59042017-07-12 13:44:53 -050013 phosphor::software::updater::ItemUpdater updater(bus, SOFTWARE_OBJPATH);
Gunnar Millsec1b41c2017-05-02 12:20:36 -050014
15 bus.request_name(BUSNAME_UPDATER);
16
17 while (true)
18 {
19 bus.process_discard();
20 bus.wait();
21 }
22 return 0;
23}