VirtualBox

Ignore:
Timestamp:
Apr 2, 2019 2:06:13 PM (6 years ago)
Author:
vboxsync
Message:

Main/HostDnsService: Renaming and cleanup (no functional changes).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/darwin/HostDnsServiceDarwin.cpp

    r77872 r77984  
    5151
    5252
    53 HostDnsServiceDarwin::HostDnsServiceDarwin():HostDnsMonitor(true),m(NULL)
     53HostDnsServiceDarwin::HostDnsServiceDarwin()
     54    : HostDnsServiceBase(true)
     55    , m(NULL)
    5456{
    5557    m = new HostDnsServiceDarwin::Data();
     
    8688
    8789
    88 HRESULT HostDnsServiceDarwin::init(HostDnsMonitorProxy *proxy)
     90HRESULT HostDnsServiceDarwin::init(HostDnsMonitorProxy *pProxy)
    8991{
    9092    SCDynamicStoreContext ctx;
     
    9496
    9597    m->m_store = SCDynamicStoreCreate(NULL, CFSTR("org.virtualbox.VBoxSVC"),
    96                                    (SCDynamicStoreCallBack)HostDnsServiceDarwin::hostDnsServiceStoreCallback,
    97                                    &ctx);
     98                                      (SCDynamicStoreCallBack)HostDnsServiceDarwin::hostDnsServiceStoreCallback,
     99                                      &ctx);
    98100    AssertReturn(m->m_store, E_FAIL);
    99101
     
    111113    AssertReturn(m->m_Stopper, E_FAIL);
    112114
    113     HRESULT hrc = HostDnsMonitor::init(proxy);
     115    HRESULT hrc = HostDnsServiceBase::init(pProxy);
    114116    AssertComRCReturn(hrc, hrc);
    115117
     
    118120
    119121
    120 void HostDnsServiceDarwin::monitorThreadShutdown()
     122void HostDnsServiceDarwin::monitorThreadShutdown(void)
    121123{
    122124    RTCLock grab(m_LockMtx);
     
    132134
    133135
    134 int HostDnsServiceDarwin::monitorWorker()
     136int HostDnsServiceDarwin::monitorWorker(void)
    135137{
    136138    m->m_RunLoopRef = CFRunLoopGetCurrent();
     
    168170}
    169171
    170 
    171 HRESULT HostDnsServiceDarwin::updateInfo()
     172HRESULT HostDnsServiceDarwin::updateInfo(void)
    172173{
    173174    CFPropertyListRef propertyRef = SCDynamicStoreCopyValue(m->m_store,
     
    254255}
    255256
    256 void HostDnsServiceDarwin::Data::performShutdownCallback(void *info)
    257 {
    258     HostDnsServiceDarwin::Data *pThis = static_cast<HostDnsServiceDarwin::Data *>(info);
     257void HostDnsServiceDarwin::Data::performShutdownCallback(void *pInfo)
     258{
     259    HostDnsServiceDarwin::Data *pThis = static_cast<HostDnsServiceDarwin::Data *>(pInfo);
    259260    AssertPtrReturnVoid(pThis);
    260261    pThis->m_fStop = true;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette