Matt Spinler | 4a6ea6a | 2018-03-27 14:25:12 -0500 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include "dbus.hpp" |
| 4 | #include "policy_table.hpp" |
| 5 | |
| 6 | namespace ibm |
| 7 | { |
| 8 | namespace logging |
| 9 | { |
| 10 | namespace policy |
| 11 | { |
| 12 | |
| 13 | constexpr auto EIDField = 0; |
| 14 | constexpr auto MsgField = 1; |
| 15 | using PolicyProps = std::tuple<std::string, std::string>; |
| 16 | |
| 17 | /** |
| 18 | * Finds the policy table details based on the properties |
| 19 | * in the xyz.openbmc_project.Logging.Entry interface. |
| 20 | * |
| 21 | * @param[in] policy - the policy table object |
| 22 | * @param[in] errorLogProperties - the map of the error log |
| 23 | * properties for the xyz.openbmc_project.Logging.Entry |
| 24 | * interface |
| 25 | * @return PolicyProps - a tuple of policy details. |
| 26 | */ |
Matt Spinler | 259e727 | 2018-03-29 10:57:17 -0500 | [diff] [blame] | 27 | PolicyProps find(const Table& policy, |
| 28 | const DbusPropertyMap& errorLogProperties); |
Matt Spinler | 66e0707 | 2018-09-12 10:36:14 -0500 | [diff] [blame^] | 29 | } // namespace policy |
| 30 | } // namespace logging |
| 31 | } // namespace ibm |