Update core file monitor infrastructre using common inotify

Resolves openbmc/openbmc#1510

Change-Id: I5f73c4330df8a5deab29e29201e8521740e6b047
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
diff --git a/core_manager.cpp b/core_manager.cpp
new file mode 100644
index 0000000..8a91a27
--- /dev/null
+++ b/core_manager.cpp
@@ -0,0 +1,30 @@
+#include <unistd.h>
+#include <sys/inotify.h>
+
+#include "core_manager.hpp"
+
+namespace phosphor
+{
+namespace dump
+{
+namespace core
+{
+namespace manager
+{
+
+void watchCallback(const UserMap& fileInfo)
+{
+    for (const auto& i : fileInfo)
+    {
+        // For any new dump file create dump entry object.
+        if (IN_CLOSE_WRITE == i.second)
+        {
+            //TODO openbmc/openbmc#1795 Enable Dump collection function here
+        }
+    }
+}
+
+} // namespace manager
+} // namespace core
+} // namespace dump
+} // namespace phosphor