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 | 433bead | 2018-04-23 11:08:03 -0500 | [diff] [blame] | 4 | #include <xyz/openbmc_project/Object/Delete/server.hpp> |
Matt Spinler | 2cfceb4 | 2018-04-23 11:13:04 -0500 | [diff] [blame] | 5 | #include <xyz/openbmc_project/Collection/DeleteAll/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> |
| 13 | using ServerObject = typename sdbusplus::server::object::object<T...>; |
| 14 | |
Matt Spinler | 433bead | 2018-04-23 11:08:03 -0500 | [diff] [blame] | 15 | using DeleteInterface = sdbusplus::xyz::openbmc_project::Object::server::Delete; |
| 16 | using DeleteObject = ServerObject<DeleteInterface>; |
| 17 | |
Matt Spinler | 2cfceb4 | 2018-04-23 11:13:04 -0500 | [diff] [blame] | 18 | using DeleteAllInterface = |
| 19 | sdbusplus::xyz::openbmc_project::Collection::server::DeleteAll; |
| 20 | using DeleteAllObject = ServerObject<DeleteAllInterface>; |
| 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 | 433bead | 2018-04-23 11:08:03 -0500 | [diff] [blame] | 27 | POLICY, |
| 28 | DELETE |
Matt Spinler | e0017eb | 2018-03-27 11:17:38 -0500 | [diff] [blame] | 29 | }; |
Matt Spinler | e0017eb | 2018-03-27 11:17:38 -0500 | [diff] [blame] | 30 | } |
| 31 | } |