Enable the BMC dump offload through given URI

Add the support for reading the dump and writing to the
path provided. The supported for writing the BMC dump
is added.
Tested using offloading a BMC dump to a remote system
using NBD.

Change-Id: I5250b41ed162905548a7d522b9dc86533d0a9a83
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
diff --git a/bmc_dump_entry.cpp b/bmc_dump_entry.cpp
index 10395d8..ce59a7f 100644
--- a/bmc_dump_entry.cpp
+++ b/bmc_dump_entry.cpp
@@ -1,6 +1,7 @@
 #include "bmc_dump_entry.hpp"
 
 #include "dump_manager.hpp"
+#include "dump_offload.hpp"
 
 #include <phosphor-logging/log.hpp>
 
@@ -29,6 +30,12 @@
     phosphor::dump::Entry::delete_();
 }
 
+void Entry::initiateOffload(std::string uri)
+{
+    phosphor::dump::offload::requestOffload(file, id, uri);
+    offloaded(true);
+}
+
 } // namespace bmc
 } // namespace dump
 } // namespace phosphor