blob: 7dd415a2b18327180dc5d2118e3f0876f463f34f [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 */
27PolicyProps find(
28 const Table& policy,
29 const DbusPropertyMap& errorLogProperties);
30
31}
32}
33}