xref: /openbmc/phosphor-time-manager/main.cpp (revision af5abc57)
1 #include <sdbusplus/bus.hpp>
2 
3 #include "config.h"
4 #include "bmc_epoch.hpp"
5 #include "host_epoch.hpp"
6 
7 int main()
8 {
9     auto bus = sdbusplus::bus::new_default();
10     phosphor::time::BmcEpoch bmc(bus, OBJPATH_BMC);
11     phosphor::time::HostEpoch host(bus,OBJPATH_HOST);
12 
13     bus.request_name(BUSNAME);
14 
15     while (true)
16     {
17         bus.process_discard();
18         bus.wait();
19     }
20     return 0;
21 }
22