blob: 5e45a5bc3faa104ed67b73a09681c5ff7d577770 [file] [log] [blame]
Matt Spinler4a6ea6a2018-03-27 14:25:12 -05001#pragma once
2
3#include "dbus.hpp"
4#include "policy_table.hpp"
5
6namespace ibm
7{
8namespace logging
9{
10namespace policy
11{
12
13constexpr auto EIDField = 0;
14constexpr auto MsgField = 1;
15using 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 Spinler259e7272018-03-29 10:57:17 -050027PolicyProps find(const Table& policy,
28 const DbusPropertyMap& errorLogProperties);
Matt Spinler66e07072018-09-12 10:36:14 -050029} // namespace policy
30} // namespace logging
31} // namespace ibm