1 #include "config.h"
2 
3 #include "item_updater.hpp"
4 
5 #include <boost/asio/io_context.hpp>
6 #include <sdbusplus/asio/connection.hpp>
7 #include <sdbusplus/bus.hpp>
8 #include <sdbusplus/server/manager.hpp>
9 
10 boost::asio::io_context& getIOContext()
11 {
12     static boost::asio::io_context io;
13     return io;
14 }
15 
16 int main()
17 {
18     sdbusplus::asio::connection bus(getIOContext());
19 
20     // Add sdbusplus ObjectManager.
21     sdbusplus::server::manager::manager objManager(bus, SOFTWARE_OBJPATH);
22 
23     phosphor::software::updater::ItemUpdater updater(bus, SOFTWARE_OBJPATH);
24 
25     bus.request_name(BUSNAME_UPDATER);
26 
27     getIOContext().run();
28 
29     return 0;
30 }
31