diff options
Diffstat (limited to 'dump_manager.cpp')
-rw-r--r-- | dump_manager.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
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 @@ void Manager::erase(uint32_t entryId) 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 |