Lei YU | 415b964 | 2017-02-09 11:37:26 +0800 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Lei YU | ad14354 | 2017-07-25 14:27:07 +0800 | [diff] [blame] | 3 | #include <xyz/openbmc_project/Time/Synchronization/server.hpp> |
| 4 | |
Lei YU | 415b964 | 2017-02-09 11:37:26 +0800 | [diff] [blame] | 5 | namespace phosphor |
| 6 | { |
| 7 | namespace time |
| 8 | { |
Gunnar Mills | ab4cc6a | 2018-09-14 14:42:39 -0500 | [diff] [blame] | 9 | /** @brief Alias to time sync mode class */ |
| 10 | using ModeSetting = |
| 11 | sdbusplus::xyz::openbmc_project::Time::server::Synchronization; |
Lei YU | 415b964 | 2017-02-09 11:37:26 +0800 | [diff] [blame] | 12 | |
Gunnar Mills | ab4cc6a | 2018-09-14 14:42:39 -0500 | [diff] [blame] | 13 | /** @brief Supported time sync modes |
| 14 | * NTP Time sourced by Network Time Server |
| 15 | * Manual User of the system need to set the time |
| 16 | */ |
| 17 | using Mode = ModeSetting::Method; |
Gunnar Mills | ab4cc6a | 2018-09-14 14:42:39 -0500 | [diff] [blame] | 18 | } // namespace time |
| 19 | } // namespace phosphor |