Add support for generic inotify based directory watch.

Watch a directory for the changes based on user configuration
and then report changes to the user.

Change-Id: I9f53d3135dd4bff6187840c0c53d2a64509808cd
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
diff --git a/Makefile.am b/Makefile.am
index 72401e1..85149c4 100755
--- a/Makefile.am
+++ b/Makefile.am
@@ -6,7 +6,8 @@
 	dump_watch.hpp \
 	dump_internal.hpp \
 	dump_manager.hpp \
-	dump_utils.hpp
+	dump_utils.hpp \
+	watch.hpp
 
 nobase_nodist_include_HEADERS = \
 	xyz/openbmc_project/Dump/Monitor/error.hpp \
@@ -20,8 +21,8 @@
 	dump_manager_main.cpp \
 	dump_entry.cpp \
 	dump_manager.cpp \
-	xyz/openbmc_project/Dump/Internal/Create/server.cpp \
-	xyz/openbmc_project/Dump/Monitor/error.cpp
+	watch.cpp \
+	xyz/openbmc_project/Dump/Internal/Create/server.cpp
 
 phosphor_dump_monitor_SOURCES = \
 	dump_watch_main.cpp \