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::async::context ctx; 19 20 // Add sdbusplus ObjectManager. 21 sdbusplus::server::manager_t objManager(ctx, SOFTWARE_OBJPATH); 22 23 phosphor::software::updater::ItemUpdater updater(ctx, SOFTWARE_OBJPATH, 24 false); 25 26 ctx.request_name(BUSNAME_UPDATER); 27 28 ctx.run(); 29 30 return 0; 31 } 32