Jayanth Othayoth | d02153c | 2017-07-02 22:29:42 -0500 | [diff] [blame] | 1 | #include <unistd.h> |
| 2 | #include <sys/inotify.h> |
| 3 | |
| 4 | #include "core_manager.hpp" |
| 5 | |
| 6 | namespace phosphor |
| 7 | { |
| 8 | namespace dump |
| 9 | { |
| 10 | namespace core |
| 11 | { |
| 12 | namespace manager |
| 13 | { |
| 14 | |
| 15 | void 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 |