Lei YU | 2f9c0cc | 2017-01-20 14:02:03 +0800 | [diff] [blame] | 1 | #include <sdbusplus/bus.hpp> |
| 2 | |
| 3 | #include "config.h" |
Lei YU | 9623282 | 2017-01-20 14:05:46 +0800 | [diff] [blame] | 4 | #include "bmc_epoch.hpp" |
Lei YU | af5abc5 | 2017-03-07 17:49:17 +0800 | [diff] [blame^] | 5 | #include "host_epoch.hpp" |
Lei YU | 2f9c0cc | 2017-01-20 14:02:03 +0800 | [diff] [blame] | 6 | |
| 7 | int main() |
| 8 | { |
| 9 | auto bus = sdbusplus::bus::new_default(); |
Lei YU | 9623282 | 2017-01-20 14:05:46 +0800 | [diff] [blame] | 10 | phosphor::time::BmcEpoch bmc(bus, OBJPATH_BMC); |
Lei YU | af5abc5 | 2017-03-07 17:49:17 +0800 | [diff] [blame^] | 11 | phosphor::time::HostEpoch host(bus,OBJPATH_HOST); |
Lei YU | 2f9c0cc | 2017-01-20 14:02:03 +0800 | [diff] [blame] | 12 | |
| 13 | bus.request_name(BUSNAME); |
| 14 | |
| 15 | while (true) |
| 16 | { |
| 17 | bus.process_discard(); |
| 18 | bus.wait(); |
| 19 | } |
| 20 | return 0; |
| 21 | } |