blob: 13f266790e82b992acc32cd2440b1752e0800126 [file] [log] [blame]
#include <cstdlib>
#include <iostream>
#include <exception>
#include <sdbusplus/bus.hpp>
#include "config.h"
#include "host_state_manager.hpp"
int main(int argc, char *argv[])
{
auto bus = sdbusplus::bus::new_default();
// For now, we only have one instance of the host
auto objPathInst = std::string{OBJPATH} + '0';
phosphor::state::manager::Host manager(bus,
BUSNAME,
objPathInst.c_str());
// Add sdbusplus ObjectManager.
sdbusplus::server::manager::manager objManager(bus, objPathInst.c_str());
bus.request_name(BUSNAME);
while(true)
{
bus.process_discard();
bus.wait();
}
return 0;
}