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