Add support for user initiated BMC Dump

Added support for creating new dump entry d-bus objects for
user request dump.

Change-Id: I31d2f478418e312e0aa6cc321a885498cf6ec6d6
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
diff --git a/dump_manager.cpp b/dump_manager.cpp
index d0376a5..3b00119 100644
--- a/dump_manager.cpp
+++ b/dump_manager.cpp
@@ -1,4 +1,5 @@
 #include <unistd.h>
+#include <sys/inotify.h>
 
 #include <phosphor-logging/elog-errors.hpp>
 
@@ -112,5 +113,17 @@
     entries.erase(entryId);
 }
 
+void Manager::watchCallback(const UserMap& fileInfo)
+{
+    for (const auto& i : fileInfo)
+    {
+        // For any new dump file create dump entry object.
+        if (IN_CLOSE_WRITE == i.second)
+        {
+            createEntry(i.first);
+        }
+    }
+}
+
 } //namespace dump
 } //namespace phosphor