Matt Spinler | e0017eb | 2018-03-27 11:17:38 -0500 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Matt Spinler | 4a6ea6a | 2018-03-27 14:25:12 -0500 | [diff] [blame] | 3 | #include <com/ibm/Logging/Policy/server.hpp> |
Matt Spinler | 23818bb | 2018-05-23 11:00:15 -0500 | [diff] [blame] | 4 | #include <xyz/openbmc_project/Common/ObjectPath/server.hpp> |
| 5 | #include <xyz/openbmc_project/Inventory/Decorator/Asset/server.hpp> |
Matt Spinler | 4a6ea6a | 2018-03-27 14:25:12 -0500 | [diff] [blame] | 6 | |
Matt Spinler | e0017eb | 2018-03-27 11:17:38 -0500 | [diff] [blame] | 7 | namespace ibm |
| 8 | { |
| 9 | namespace logging |
| 10 | { |
| 11 | |
Matt Spinler | 4a6ea6a | 2018-03-27 14:25:12 -0500 | [diff] [blame] | 12 | template <typename... T> |
Patrick Williams | 8123a71 | 2022-07-22 19:26:53 -0500 | [diff] [blame] | 13 | using ServerObject = typename sdbusplus::server::object_t<T...>; |
Matt Spinler | 4a6ea6a | 2018-03-27 14:25:12 -0500 | [diff] [blame] | 14 | |
Matt Spinler | 23818bb | 2018-05-23 11:00:15 -0500 | [diff] [blame] | 15 | using ObjectPathInterface = |
| 16 | sdbusplus::xyz::openbmc_project::Common::server::ObjectPath; |
| 17 | |
| 18 | using CalloutInterface = |
| 19 | sdbusplus::xyz::openbmc_project::Inventory::Decorator::server::Asset; |
| 20 | using CalloutObject = ServerObject<CalloutInterface, ObjectPathInterface>; |
| 21 | |
Matt Spinler | 4a6ea6a | 2018-03-27 14:25:12 -0500 | [diff] [blame] | 22 | using PolicyInterface = sdbusplus::com::ibm::Logging::server::Policy; |
| 23 | using PolicyObject = ServerObject<PolicyInterface>; |
| 24 | |
Matt Spinler | e0017eb | 2018-03-27 11:17:38 -0500 | [diff] [blame] | 25 | enum class InterfaceType |
| 26 | { |
Matt Spinler | 23818bb | 2018-05-23 11:00:15 -0500 | [diff] [blame] | 27 | CALLOUT, |
Matt Spinler | 9bea4ea | 2018-05-09 15:53:04 -0500 | [diff] [blame] | 28 | POLICY |
Matt Spinler | e0017eb | 2018-03-27 11:17:38 -0500 | [diff] [blame] | 29 | }; |
Matt Spinler | 66e0707 | 2018-09-12 10:36:14 -0500 | [diff] [blame] | 30 | } // namespace logging |
| 31 | } // namespace ibm |