1 #include "config.h"
2 
3 #include "hypervisor_state_manager.hpp"
4 
5 #include <sdbusplus/bus.hpp>
6 
7 #include <cstdlib>
8 
main()9 int main()
10 {
11     auto bus = sdbusplus::bus::new_default();
12 
13     // For now, we only have one instance of the hypervisor
14     auto objPathInst = std::string{HYPERVISOR_OBJPATH} + '0';
15 
16     // Add sdbusplus ObjectManager.
17     sdbusplus::server::manager_t objManager(bus, objPathInst.c_str());
18 
19     phosphor::state::manager::Hypervisor manager(bus, objPathInst.c_str());
20 
21     bus.request_name(HYPERVISOR_BUSNAME);
22 
23     while (true)
24     {
25         bus.process_discard();
26         bus.wait();
27     }
28     return 0;
29 }
30