Create objects for existing logs on startup
Use getManagedObjects to find the existing error log
entries, and grab their Logging.Entry property map
to pass to the create function.
Change-Id: I798f13422483fdeea16a5acf54d31919f1c7c096
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/manager.hpp b/manager.hpp
index f779939..53441e6 100644
--- a/manager.hpp
+++ b/manager.hpp
@@ -63,6 +63,23 @@
void interfaceRemoved(sdbusplus::message::message& msg);
/**
+ * Creates the IBM interfaces for all existing error log
+ * entries.
+ */
+ void createAll();
+
+ /**
+ * Creates the IBM interface(s) for a single error log.
+ *
+ * @param[in] objectPath - object path of the error log
+ * @param[in] properties - the xyz.openbmc_project.Logging.Entry
+ * properties
+ */
+ void create(
+ const std::string& objectPath,
+ const DbusPropertyMap& properties);
+
+ /**
* Returns the entry ID for a log
*
* @param[in] objectPath - the object path of the log