Changeset 49235 in vbox for trunk/src/VBox/Main/src-server/win
- Timestamp:
- Oct 22, 2013 6:56:03 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/win/HostDnsServiceWin.cpp
r48955 r49235 30 30 31 31 32 HRESULT HostDnsServiceWin::init( const VirtualBox *aParent)32 HRESULT HostDnsServiceWin::init() 33 33 { 34 HRESULT hrc; 35 hrc = HostDnsService::init(aParent); 34 HRESULT hrc = HostDnsMonitor::init(aParent); 36 35 AssertComRCReturn(hrc, hrc); 37 36 … … 40 39 41 40 return S_OK; 42 }43 44 45 HRESULT HostDnsServiceWin::start(void)46 {47 return S_OK;48 }49 50 51 void HostDnsServiceWin::stop(void)52 {53 41 } 54 42 … … 61 49 BYTE abNameServers[256]; 62 50 BYTE abSearchList[256]; 63 64 m_llNameServers.clear();65 m_llSearchStrings.clear();66 m_DomainName.setNull();67 68 RT_ZERO(abDomain);69 RT_ZERO(abNameServers);70 RT_ZERO(abSearchList);71 51 72 52 regIndex = 0; … … 115 95 /* OK, now parse and update DNS structures. */ 116 96 /* domain name */ 117 m_DomainName = com::Utf8Str((char *)abDomain); 97 HostDnsInformation info; 98 info.domain = static_cast<char*>(abDomain); 99 118 100 /* server list */ 119 strList2List( m_llNameServers, (char *)abNameServers);101 strList2List(info.servers, static_cast<char *>(abNameServers)); 120 102 /* search list */ 121 strList2List(m_llSearchStrings, (char *)abNameServers); 103 strList2List(info.searchList, static_cast<char *>(abSearchList)); 104 105 setInfo(info); 122 106 123 107 return S_OK; … … 126 110 127 111 128 void HostDnsServiceWin::strList2List( Utf8StrList& lst, char *strLst)112 void HostDnsServiceWin::strList2List(std::vector<std::string>& lst, char *strLst) 129 113 { 130 114 char *next, *current; … … 146 130 strcpy(address, current); 147 131 148 lst.push_back( com::Utf8Str(address));132 lst.push_back(std::string(address)); 149 133 150 134 current = next + 1;
Note:
See TracChangeset
for help on using the changeset viewer.