blob: 79c4fd8aea9584e89798bf1c7aa3275f9d60fbb3 [file] [log] [blame]
Gunnar Millsb0ce9962018-09-07 13:39:10 -05001#include "config.h"
2
3#include "item_updater.hpp"
4
Gunnar Millsec1b41c2017-05-02 12:20:36 -05005#include <sdbusplus/bus.hpp>
6#include <sdbusplus/server/manager.hpp>
Gunnar Millsec1b41c2017-05-02 12:20:36 -05007
Adriana Kobylak292159f2020-05-05 09:25:55 -05008int main()
Gunnar Millsec1b41c2017-05-02 12:20:36 -05009{
10 auto bus = sdbusplus::bus::new_default();
11
12 // Add sdbusplus ObjectManager.
13 sdbusplus::server::manager::manager objManager(bus, SOFTWARE_OBJPATH);
14
Michael Tritz37a59042017-07-12 13:44:53 -050015 phosphor::software::updater::ItemUpdater updater(bus, SOFTWARE_OBJPATH);
Gunnar Millsec1b41c2017-05-02 12:20:36 -050016
17 bus.request_name(BUSNAME_UPDATER);
18
19 while (true)
20 {
21 bus.process_discard();
22 bus.wait();
23 }
24 return 0;
25}