host: Added support to delete system dump

To delete host system dump using pldm oem command "FileAck" with
dump file type and dump id which is present as source dump id (which
is got from pldm after created the host system dump) in system dump entry
dbus object and also, to use pldm oem command added support to indicate
delete host system dump support is not available for other host transport
consumer and for other oem vendors who are using pldm as host transport
to get host dump.

Also, changed existing commited error i.e internal failure into not allowed
for host system dump offload to avoid bmc dump creation in dump path.

Signed-off-by: Ramesh Iyyar <rameshi1@in.ibm.com>
Change-Id: Ib6be5b521fb3c5aa2926497bae0b03c1d9737161
diff --git a/dump_utils.hpp b/dump_utils.hpp
index a2c2604..5121bab 100644
--- a/dump_utils.hpp
+++ b/dump_utils.hpp
@@ -5,12 +5,16 @@
 
 #include <memory>
 #include <sdbusplus/bus.hpp>
+#include <xyz/openbmc_project/State/Boot/Progress/server.hpp>
 
 namespace phosphor
 {
 namespace dump
 {
 
+using BootProgress = sdbusplus::xyz::openbmc_project::State::Boot::server::
+    Progress::ProgressStages;
+
 /* Need a custom deleter for freeing up sd_event */
 struct EventDeleter
 {
@@ -71,5 +75,14 @@
 std::string getService(sdbusplus::bus::bus& bus, const std::string& path,
                        const std::string& interface);
 
+/**
+ * @brief Get the host boot progress stage
+ *
+ * @return BootProgress on success
+ *         Throw exception on failure
+ *
+ */
+BootProgress getBootProgress();
+
 } // namespace dump
 } // namespace phosphor