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 | |
Ratan Gupta | f901e9c | 2021-02-03 09:04:59 +0530 | [diff] [blame] | 5 | namespace // anonymous |
| 6 | { |
| 7 | |
| 8 | constexpr auto OBJPATH_BMC = "/xyz/openbmc_project/time/bmc"; |
| 9 | constexpr auto BUSNAME = "xyz.openbmc_project.Time.Manager"; |
| 10 | |
| 11 | } // namespace |
| 12 | |
Lei YU | 415b964 | 2017-02-09 11:37:26 +0800 | [diff] [blame] | 13 | namespace phosphor |
| 14 | { |
| 15 | namespace time |
| 16 | { |
Gunnar Mills | ab4cc6a | 2018-09-14 14:42:39 -0500 | [diff] [blame] | 17 | /** @brief Alias to time sync mode class */ |
| 18 | using ModeSetting = |
| 19 | sdbusplus::xyz::openbmc_project::Time::server::Synchronization; |
Lei YU | 415b964 | 2017-02-09 11:37:26 +0800 | [diff] [blame] | 20 | |
Gunnar Mills | ab4cc6a | 2018-09-14 14:42:39 -0500 | [diff] [blame] | 21 | /** @brief Supported time sync modes |
| 22 | * NTP Time sourced by Network Time Server |
| 23 | * Manual User of the system need to set the time |
| 24 | */ |
| 25 | using Mode = ModeSetting::Method; |
Gunnar Mills | ab4cc6a | 2018-09-14 14:42:39 -0500 | [diff] [blame] | 26 | } // namespace time |
| 27 | } // namespace phosphor |