Find a policy entry and create the Policy object
Find an entry in the policy table based on the error
log entry's properties, and create and save the
sdbusplus object for it.
Change-Id: Ifc09059169b5faedb4eae74a76d59847d7b2868b
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/manager.hpp b/manager.hpp
index 0f44a2b..60b3d75 100644
--- a/manager.hpp
+++ b/manager.hpp
@@ -84,6 +84,20 @@
const DbusPropertyMap& properties);
/**
+ * Creates the IBM policy interface for a single error log
+ * and saves it in the list of interfaces.
+ *
+ * @param[in] objectPath - object path of the error log
+ * @param[in] properties - the xyz.openbmc_project.Logging.Entry
+ * properties
+ */
+#ifdef USE_POLICY_INTERFACE
+ void createPolicyInterface(
+ const std::string& objectPath,
+ const DbusPropertyMap& properties);
+#endif
+
+ /**
* Returns the entry ID for a log
*
* @param[in] objectPath - the object path of the log