HostDnsServiceResolvConf.cpp revision 2b114c590cf5a19f8047cd7bde9c7e5ae00aa22b
/* $Id$ */
/** @file
* Base class for Host DNS & Co services.
*/
/*
* Copyright (C) 2014 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
/* -*- indent-tabs-mode: nil; -*- */
#ifdef RT_OS_OS2
typedef int socklen_t;
#endif
#include <stdio.h>
#include <iprt/critsect.h>
#include <string>
#include "HostDnsService.h"
#include "../../Devices/Network/slirp/resolv_conf_parser.h"
struct HostDnsServiceResolvConf::Data
{
};
{
return m->resolvConfFilename;
}
{
if (m)
{
delete m;
m = NULL;
}
}
{
m = new Data(aResolvConfFileName);
HostDnsMonitor::init();
return S_OK;
}
{
if (rc == -1)
return S_OK;
for (unsigned i = 0; i != st.rcps_num_nameserver; ++i)
{
}
if (st.rcps_domain)
for (unsigned i = 0; i != st.rcps_num_searchlist; ++i)
{
}
return S_OK;
}