Implementation of create interface.
Both the external and internal Dump managers define "Create"
interfaces. This commit implements these.
Change-Id: If857ec6ea7267fd72e9b420e6b44fa68b6abab66
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
diff --git a/dump_watch.cpp b/dump_watch.cpp
index 6208466..12a6c73 100644
--- a/dump_watch.cpp
+++ b/dump_watch.cpp
@@ -1,33 +1,17 @@
-#include <stdexcept>
-#include <cstddef>
-#include <cstring>
-#include <string>
-#include <vector>
#include <sys/inotify.h>
-#include <unistd.h>
+#include <experimental/filesystem>
+#include <phosphor-logging/elog-errors.hpp>
+#include <xyz/openbmc_project/Dump/Monitor/error.hpp>
+
#include "config.h"
#include "dump_watch.hpp"
-#include <experimental/filesystem>
-#include <phosphor-logging/log.hpp>
-#include <phosphor-logging/elog.hpp>
-#include <phosphor-logging/elog-errors.hpp>
#include "elog-errors.hpp"
-#include <xyz/openbmc_project/Dump/Monitor/error.hpp>
#include "xyz/openbmc_project/Common/error.hpp"
namespace phosphor
{
namespace dump
{
-
-CustomFd::~CustomFd()
-{
- if (fd >= 0)
- {
- close(fd);
- }
-}
-
namespace inotify
{