VirtualBox

Changeset 49558 in vbox


Ignore:
Timestamp:
Nov 20, 2013 2:43:14 AM (11 years ago)
Author:
vboxsync
Message:

NetworkServices: changed the manner network services verify their dependecy on Main.

Location:
trunk/src/VBox/NetworkServices
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/DHCP/VBoxNetDHCP.cpp

    r49543 r49558  
    366366    netManager->setOurMac(m_MacAddress);
    367367   
    368     if (m_fNeedMain)
     368    if (isMainNeeded())
    369369        rc = initWithMain();
    370370    else
  • trunk/src/VBox/NetworkServices/NetLib/VBoxNetBaseService.cpp

    r49516 r49558  
    138138int VBoxNetBaseService::init()
    139139{
    140     if (m_fNeedMain)
     140    if (isMainNeeded())
    141141    {
    142142        HRESULT hrc = com::Initialize();
  • trunk/src/VBox/NetworkServices/NetLib/VBoxNetBaseService.h

    r49516 r49558  
    3939
    4040    virtual int         init(void);
    41 
     41    virtual bool        isMainNeeded() { return m_fNeedMain; }
    4242    /* VirtualBox instance */
    4343    ComPtr<IVirtualBox> virtualbox;
     
    8383    PINTNETBUF          m_pIfBuf;       /**< Interface buffer. */
    8484    std::vector<PRTGETOPTDEF> m_vecOptionDefs;
    85     bool                m_fNeedMain;
    8685    /** @} */
    8786    /** @name Debug stuff
     
    9392    /* cs for syncing */
    9493    RTCRITSECT          m_csThis;
     94    /* Controls whether service will connect SVC for runtime needs */
     95    bool                m_fNeedMain;
    9596
    9697    /** @} */
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