Changeset 77984 in vbox for trunk/src/VBox/Main/src-server/darwin
- Timestamp:
- Apr 2, 2019 2:06:13 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/darwin/HostDnsServiceDarwin.cpp
r77872 r77984 51 51 52 52 53 HostDnsServiceDarwin::HostDnsServiceDarwin():HostDnsMonitor(true),m(NULL) 53 HostDnsServiceDarwin::HostDnsServiceDarwin() 54 : HostDnsServiceBase(true) 55 , m(NULL) 54 56 { 55 57 m = new HostDnsServiceDarwin::Data(); … … 86 88 87 89 88 HRESULT HostDnsServiceDarwin::init(HostDnsMonitorProxy *p roxy)90 HRESULT HostDnsServiceDarwin::init(HostDnsMonitorProxy *pProxy) 89 91 { 90 92 SCDynamicStoreContext ctx; … … 94 96 95 97 m->m_store = SCDynamicStoreCreate(NULL, CFSTR("org.virtualbox.VBoxSVC"), 96 (SCDynamicStoreCallBack)HostDnsServiceDarwin::hostDnsServiceStoreCallback,97 &ctx);98 (SCDynamicStoreCallBack)HostDnsServiceDarwin::hostDnsServiceStoreCallback, 99 &ctx); 98 100 AssertReturn(m->m_store, E_FAIL); 99 101 … … 111 113 AssertReturn(m->m_Stopper, E_FAIL); 112 114 113 HRESULT hrc = HostDns Monitor::init(proxy);115 HRESULT hrc = HostDnsServiceBase::init(pProxy); 114 116 AssertComRCReturn(hrc, hrc); 115 117 … … 118 120 119 121 120 void HostDnsServiceDarwin::monitorThreadShutdown( )122 void HostDnsServiceDarwin::monitorThreadShutdown(void) 121 123 { 122 124 RTCLock grab(m_LockMtx); … … 132 134 133 135 134 int HostDnsServiceDarwin::monitorWorker( )136 int HostDnsServiceDarwin::monitorWorker(void) 135 137 { 136 138 m->m_RunLoopRef = CFRunLoopGetCurrent(); … … 168 170 } 169 171 170 171 HRESULT HostDnsServiceDarwin::updateInfo() 172 HRESULT HostDnsServiceDarwin::updateInfo(void) 172 173 { 173 174 CFPropertyListRef propertyRef = SCDynamicStoreCopyValue(m->m_store, … … 254 255 } 255 256 256 void HostDnsServiceDarwin::Data::performShutdownCallback(void * info)257 { 258 HostDnsServiceDarwin::Data *pThis = static_cast<HostDnsServiceDarwin::Data *>( info);257 void HostDnsServiceDarwin::Data::performShutdownCallback(void *pInfo) 258 { 259 HostDnsServiceDarwin::Data *pThis = static_cast<HostDnsServiceDarwin::Data *>(pInfo); 259 260 AssertPtrReturnVoid(pThis); 260 261 pThis->m_fStop = true;
Note:
See TracChangeset
for help on using the changeset viewer.