VirtualBox

Changeset 94722 in vbox


Ignore:
Timestamp:
Apr 27, 2022 1:42:50 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
151102
Message:

Main: Compile fixes when VBOX_WITH_HOSTNETIF_API is not defined.

Location:
trunk/src/VBox/Main/src-server
Files:
3 edited

Legend:

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

    r94685 r94722  
    433433#endif
    434434
    435 #if defined(RT_OS_LINUX) || defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD)
     435#if defined(VBOX_WITH_HOSTNETIF_API) && (defined(RT_OS_LINUX) || defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD))
    436436    /* Extract the list of configured host-only interfaces */
    437437    std::set<Utf8Str> aConfiguredNames;
     
    467467    }
    468468
    469 #endif /* defined(RT_OS_LINUX) || defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD) */
     469#endif /* defined(VBOX_WITH_HOSTNETIF_API) && (defined(RT_OS_LINUX) || defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD)) */
    470470
    471471    /* Confirm a successful initialization */
     
    15231523    return S_OK;
    15241524#else
     1525    RT_NOREF(aHostInterface, aProgress);
    15251526    return E_NOTIMPL;
    15261527#endif
     
    15841585    return r == VERR_NOT_IMPLEMENTED ? E_NOTIMPL : E_FAIL;
    15851586#else
     1587    RT_NOREF(aId, aProgress);
    15861588    return E_NOTIMPL;
    15871589#endif
     
    17531755{
    17541756#ifndef VBOX_WITH_HOSTNETIF_API
     1757    RT_NOREF(aName, aNetworkInterface);
    17551758    return E_NOTIMPL;
    17561759#else
     
    17961799{
    17971800#ifndef VBOX_WITH_HOSTNETIF_API
     1801    RT_NOREF(aId, aNetworkInterface);
    17981802    return E_NOTIMPL;
    17991803#else
     
    18761880    return S_OK;
    18771881#else
     1882    RT_NOREF(aType, aNetworkInterfaces);
    18781883    return E_NOTIMPL;
    18791884#endif
  • trunk/src/VBox/Main/src-server/HostNetworkInterfaceImpl.cpp

    r93576 r94722  
    8282
    8383    unconst(mInterfaceName) = aInterfaceName;
     84#ifdef VBOX_WITH_HOSTNETIF_API
    8485    unconst(mNetworkName) = i_composeNetworkName(aShortName);
     86#endif
    8587    unconst(mShortName) = aShortName;
    8688    unconst(mGuid) = aGuid;
     
    541543{
    542544#ifndef VBOX_WITH_HOSTNETIF_API
     545    RT_NOREF(aIPAddress, aNetworkMask);
    543546    return E_NOTIMPL;
    544547#else
     
    631634{
    632635#ifndef VBOX_WITH_HOSTNETIF_API
     636    RT_NOREF(aIPV6Address, aIPV6NetworkMaskPrefixLength);
    633637    return E_NOTIMPL;
    634638#else
  • trunk/src/VBox/Main/src-server/Performance.cpp

    r94088 r94722  
    678678static bool getLinkSpeed(const char *szShortName, uint32_t *pSpeed)
    679679{
     680# ifdef VBOX_WITH_HOSTNETIF_API
    680681    NETIFSTATUS enmState = NETIF_S_UNKNOWN;
    681682    int vrc = NetIfGetState(szShortName, &enmState);
     
    691692    }
    692693    return true;
     694# else  /* !VBOX_WITH_HOSTNETIF_API */
     695    RT_NOREF(szShortName, pSpeed);
     696    return false;
     697# endif /* VBOX_WITH_HOSTNETIF_API */
    693698}
    694699
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