blob: 8a91a27f46597f6ce11962912406172487639de6 [file] [log] [blame]
Jayanth Othayothd02153c2017-07-02 22:29:42 -05001#include <unistd.h>
2#include <sys/inotify.h>
3
4#include "core_manager.hpp"
5
6namespace phosphor
7{
8namespace dump
9{
10namespace core
11{
12namespace manager
13{
14
15void watchCallback(const UserMap& fileInfo)
16{
17 for (const auto& i : fileInfo)
18 {
19 // For any new dump file create dump entry object.
20 if (IN_CLOSE_WRITE == i.second)
21 {
22 //TODO openbmc/openbmc#1795 Enable Dump collection function here
23 }
24 }
25}
26
27} // namespace manager
28} // namespace core
29} // namespace dump
30} // namespace phosphor