PEL: Add guard record entry create function

Added D-Bus wrapper function to create guard record
entry D-Bus object.

hardware isolation API's used no no-reply mode to avoid
cyclic dependency with log manager. PEL log already have
the details of guard records properties. For any failure
during record creation is hardware isolation application
is ignored by log manager. User will get details on this
failure by looking hardware isolation log information.

Tested: verified D-Bus create method.

Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
Change-Id: I8c7703dc28aaf7b39793e3bd1dfe4fac374d9ad5
diff --git a/extensions/openpower-pels/data_interface.hpp b/extensions/openpower-pels/data_interface.hpp
index fc902a0..f5053aa 100644
--- a/extensions/openpower-pels/data_interface.hpp
+++ b/extensions/openpower-pels/data_interface.hpp
@@ -345,6 +345,17 @@
     virtual std::vector<bool>
         checkDumpStatus(const std::vector<std::string>& type) const = 0;
 
+    /**
+     * @brief Create guard record
+     *
+     *  @param[in] binPath: phal devtree binary path used as key
+     *  @param[in] type: Guard type
+     *  @param[in] logPath: error log entry object path
+     */
+    virtual void createGuardRecord(const std::vector<uint8_t>& binPath,
+                                   const std::string& type,
+                                   const std::string& logPath) const = 0;
+
   protected:
     /**
      * @brief Sets the host on/off state and runs any
@@ -633,6 +644,17 @@
     std::vector<bool>
         checkDumpStatus(const std::vector<std::string>& type) const override;
 
+    /**
+     * @brief Create guard record
+     *
+     *  @param[in] binPath: phal devtree binary path used as key
+     *  @param[in] type: Guard type
+     *  @param[in] logPath: error log entry object path
+     */
+    void createGuardRecord(const std::vector<uint8_t>& binPath,
+                           const std::string& type,
+                           const std::string& logPath) const override;
+
   private:
     /**
      * @brief Reads the BMC firmware version string and puts it into