Changeset 48805 in vbox
- Timestamp:
- Oct 2, 2013 5:16:26 AM (11 years ago)
- Location:
- trunk/src/VBox/Main/src-server
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/HostDnsService.cpp
r48340 r48805 20 20 #include <VBox/com/string.h> 21 21 22 #include <iprt/cpp/utils.h> 23 24 #include "VirtualBoxImpl.h" 22 25 #include "HostDnsService.h" 23 26 #include <iprt/thread.h> … … 33 36 34 37 35 HRESULT HostDnsService::init (void)38 HRESULT HostDnsService::init(const VirtualBox *aParent) 36 39 { 40 mParent = aParent; 41 37 42 int rc = RTCritSectInit(&m_hCritSect); 38 43 AssertRCReturn(rc, E_FAIL); … … 51 56 HRESULT HostDnsService::update() 52 57 { 58 unconst(mParent)->onHostNameResolutionConfigurationChange(); 53 59 return S_OK; 54 60 } -
trunk/src/VBox/Main/src-server/HostDnsService.h
r48346 r48805 18 18 #ifndef ___H_DNSHOSTSERVICE 19 19 #define ___H_DNSHOSTSERVICE 20 #include "VirtualBoxBase.h" 20 21 21 22 #include <iprt/cdefs.h> … … 34 35 HostDnsService(); 35 36 virtual ~HostDnsService(); 36 virtual HRESULT init( void);37 virtual HRESULT init(const VirtualBox *aParent); 37 38 virtual HRESULT start(void); 38 39 virtual void stop(void); … … 46 47 Utf8StrList m_llNameServers; 47 48 Utf8StrList m_llSearchStrings; 48 com::Utf8Str 49 com::Utf8Str m_DomainName; 49 50 RTCRITSECT m_hCritSect; 50 51 51 52 private: 53 const VirtualBox *mParent; 52 54 HostDnsService(const HostDnsService& service){ NOREF(service); } 53 55 HostDnsService& operator =(const HostDnsService& service){ NOREF(service); return *this; } … … 61 63 virtual ~HostDnsServiceDarwin(); 62 64 63 virtual HRESULT init( void);65 virtual HRESULT init(const VirtualBox *aParent); 64 66 virtual HRESULT start(void); 65 67 virtual void stop(void); … … 78 80 virtual ~HostDnsServiceWin(); 79 81 80 virtual HRESULT init( void);82 virtual HRESULT init(const VirtualBox *aParent); 81 83 virtual HRESULT start(void); 82 84 virtual void stop(void); … … 94 96 HostDnsServiceResolvConf(const char *aResolvConfFileName = "/etc/resolv.conf"); 95 97 virtual ~HostDnsServiceResolvConf(); 96 virtual HRESULT init( void);98 virtual HRESULT init(VirtualBox *aParent); 97 99 virtual HRESULT update(); 98 100 protected: -
trunk/src/VBox/Main/src-server/HostDnsServiceResolvConf.cpp
r48494 r48805 63 63 } 64 64 65 HRESULT HostDnsServiceResolvConf::init( )65 HRESULT HostDnsServiceResolvConf::init(const VirtualBox *aParent) 66 66 { 67 67 HRESULT hrc; … … 72 72 73 73 74 hrc = HostDnsService::init( );74 hrc = HostDnsService::init(aParent); 75 75 AssertComRCReturn(hrc, hrc); 76 76 -
trunk/src/VBox/Main/src-server/HostImpl.cpp
r48765 r48805 306 306 # endif 307 307 308 hrc = m->pHostDnsService->init( );308 hrc = m->pHostDnsService->init(m->pParent); 309 309 AssertComRCReturn(hrc, hrc); 310 310 -
trunk/src/VBox/Main/src-server/darwin/HostDnsServiceDarwin.cpp
r48492 r48805 89 89 } 90 90 91 HRESULT HostDnsServiceDarwin::init( )91 HRESULT HostDnsServiceDarwin::init(const VirtualBox *aParent) 92 92 { 93 93 SCDynamicStoreContext ctx; … … 105 105 return E_OUTOFMEMORY; 106 106 107 HRESULT hrc = HostDnsService::init( );107 HRESULT hrc = HostDnsService::init(aParent); 108 108 AssertComRCReturn(hrc, hrc); 109 109 … … 218 218 219 219 CFRelease(propertyRef); 220 this->HostDnsService::update(); 221 220 222 return S_OK; 221 223 } -
trunk/src/VBox/Main/src-server/win/HostDnsServiceWin.cpp
r48330 r48805 30 30 31 31 32 HRESULT HostDnsServiceWin::init( void)32 HRESULT HostDnsServiceWin::init(const VirtualBox *aParent) 33 33 { 34 34 HRESULT hrc; 35 hrc = HostDnsService::init( );35 hrc = HostDnsService::init(aParent); 36 36 AssertComRCReturn(hrc, hrc); 37 37
Note:
See TracChangeset
for help on using the changeset viewer.