boot-block: create d-bus block object on callout
If the QuiesceOnHwError is set and a callout is present in the Entry
then create the new block object and the
xyz.openbmc_project.Logging.ErrorBlocksTransition interface.
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I9aea289ab7cc8dc7649820ff54edc8c04ecb3ef5
diff --git a/log_manager.hpp b/log_manager.hpp
index b24a7f3..8f8ff82 100644
--- a/log_manager.hpp
+++ b/log_manager.hpp
@@ -1,5 +1,6 @@
#pragma once
+#include "elog_block.hpp"
#include "elog_entry.hpp"
#include "xyz/openbmc_project/Collection/DeleteAll/server.hpp"
#include "xyz/openbmc_project/Logging/Create/server.hpp"
@@ -131,6 +132,15 @@
*/
int getInfoErrSize();
+ /** @brief Returns the number of blocking errors
+ *
+ * @return int - count of blocking errors
+ */
+ int getBlockingErrSize()
+ {
+ return blockingErrors.size();
+ }
+
sdbusplus::bus::bus& getBus()
{
return busLog;
@@ -265,6 +275,9 @@
/** @brief The BMC firmware version */
const std::string fwVersion;
+
+ /** @brief Array of blocking errors */
+ std::vector<std::unique_ptr<Block>> blockingErrors;
};
} // namespace internal