blob: 7e41ad7ba401ab875d733576e1efdf02611e03dc [file] [log] [blame]
#include "config.h"
#include "item_updater.hpp"
#include <boost/asio/io_context.hpp>
#include <sdbusplus/asio/connection.hpp>
#include <sdbusplus/bus.hpp>
#include <sdbusplus/server/manager.hpp>
boost::asio::io_context& getIOContext()
{
static boost::asio::io_context io;
return io;
}
int main()
{
sdbusplus::asio::connection bus(getIOContext());
// Add sdbusplus ObjectManager.
sdbusplus::server::manager::manager objManager(bus, SOFTWARE_OBJPATH);
phosphor::software::updater::ItemUpdater updater(bus, SOFTWARE_OBJPATH);
bus.request_name(BUSNAME_UPDATER);
getIOContext().run();
return 0;
}