PEL: Add Symbolic FRU support to Callout
This adds a constructor that takes a priority, symbolic FRU, location
cod, and if the location code can be trusted enough that the FRU can be
replaced based on it. It then creates a FRUIdentity object with the
symbolic FRU.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I38074467dd5dba6f9260d50afe93e08c7fe96cd2
diff --git a/extensions/openpower-pels/callout.hpp b/extensions/openpower-pels/callout.hpp
index 6b7dbc7..fda0024 100644
--- a/extensions/openpower-pels/callout.hpp
+++ b/extensions/openpower-pels/callout.hpp
@@ -84,7 +84,7 @@
* @brief Constructor
*
* Creates the objects with a FRUIdentity substructure that calls
- * out maintenance procedure.
+ * out a maintenance procedure.
*
* @param[in] priority - The priority of the callout
* @param[in] procedureFromRegistry - The maintenance procedure name
@@ -93,6 +93,22 @@
Callout(CalloutPriority priority, const std::string& procedureFromRegistry);
/**
+ * @brief Constructor
+ *
+ * Creates the objects with a FRUIdentity substructure that calls
+ * out a symbolic FRU.
+ *
+ * @param[in] priority - The priority of the callout
+ * @param[in] symbolicFRUFromRegistry - The symbolic FRU name as
+ * defined in the message registry.
+ * @param[in] locationCode - The location code of the callout
+ * @param[in] trustedLocationCode - If the location is trusted
+ */
+ Callout(CalloutPriority priority,
+ const std::string& symbolicFRUFromRegistry,
+ const std::string& locationCode, bool trustedLocationCode);
+
+ /**
* @brief Returns the size of this object when flattened into a PEL
*
* @return size_t - The size of the section