Create wrapper function for adding an interface
Put the code that places an interface object into the
map of entries into a common function.
Change-Id: I14af6771fcf6ec36fbd055d9c1f19cb0304aa130
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/manager.hpp b/manager.hpp
index 55d6f5c..ca5e16b 100644
--- a/manager.hpp
+++ b/manager.hpp
@@ -106,6 +106,16 @@
}
/**
+ * Adds an interface object to the entries map
+ *
+ * @param[in] objectPath - the object path of the log
+ * @param[in] type - the interface type being added
+ * @param[in] object - the interface object
+ */
+ void addInterface(const std::string& objectPath, InterfaceType type,
+ std::experimental::any& object);
+
+ /**
* The sdbusplus bus object
*/
sdbusplus::bus::bus& bus;