5 #ifndef CVMFS_RESOLV_CONF_EVENT_HANDLER_H_
6 #define CVMFS_RESOLV_CONF_EVENT_HANDLER_H_
17 class DownloadManager;
29 typedef std::vector<std::pair<int, std::string> >
AddressList;
35 virtual bool Handle(
const std::string& file_path,
50 #endif // CVMFS_RESOLV_CONF_EVENT_HANDLER_H_
ResolvConfEventHandler(download::DownloadManager *download_manager, download::DownloadManager *external_download_manager)
static void SetDnsAddress(download::DownloadManager *download_manager, const AddressList &addresses)
download::DownloadManager * external_download_manager_
download::DownloadManager * download_manager_
static void GetDnsAddresses(const std::string &resolv_file, AddressList *addresses)
std::vector< std::pair< int, std::string > > AddressList
virtual ~ResolvConfEventHandler()
virtual bool Handle(const std::string &file_path, file_watcher::Event event, bool *clear_handler)