VirtualBox

Changeset 48709 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Sep 26, 2013 1:43:05 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
89337
Message:

NatNetwork: reference counting. intoroduces natNetworkRef{Inc,Dec},
if counter is 0 on Inc, corresponding network service is starting.
on Dec exceeding counter 0 network service is stoppping.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/VirtualBoxImpl.h

    r48297 r48709  
    226226                                 IN_BSTR aHostIp, LONG aHostPort,
    227227                                 IN_BSTR aGuestIp, LONG aGuestPort);
     228   
     229    int natNetworkRefInc(IN_BSTR aNetworkName);
     230    int natNetworkRefDec(IN_BSTR aNetworkName);
    228231
    229232    ComObjPtr<GuestOSType> getUnknownOSType();
     
    360363    static Bstr sPackageType;
    361364    static Bstr sAPIVersion;
     365    static std::map<Bstr, int> sNatNetworkNameToRefCount;
     366    static RWLockHandle* spMtxNatNetworkNameToRefCountLock;
    362367
    363368    static DECLCALLBACK(int) AsyncEventHandler(RTTHREAD thread, void *pvUser);
Note: See TracChangeset for help on using the changeset viewer.

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