Integrate inotify watcher into network daemon
This commit integrates watching for DNS entries and updating
/etc/resolv.conf functionality into network manager daemon
as opposed to having another daemon doing just that.
Change-Id: Id858815675ed4a23ee8c6a31ba3ae6e5ee0054fd
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
diff --git a/dns_updater.hpp b/dns_updater.hpp
index 44c0e32..84646c6 100644
--- a/dns_updater.hpp
+++ b/dns_updater.hpp
@@ -20,8 +20,8 @@
* @param[in] inFile - File having DNS entries supplied by DHCP
* @param[in] outFile - File to write the nameserver entries to
*/
-void processDNSEntries(const fs::path& inFile,
- const fs::path& outFile);
+void updateDNSEntries(const fs::path& inFile,
+ const fs::path& outFile);
/** @brief User callback handler invoked by inotify watcher
*
@@ -32,7 +32,7 @@
*/
inline void processDNSEntries(const fs::path& inFile)
{
- return processDNSEntries(inFile, RESOLV_CONF);
+ return updateDNSEntries(inFile, RESOLV_CONF);
}
} // namepsace updater