Changeset 94722 in vbox
- Timestamp:
- Apr 27, 2022 1:42:50 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 151102
- Location:
- trunk/src/VBox/Main/src-server
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/HostImpl.cpp
r94685 r94722 433 433 #endif 434 434 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)) 436 436 /* Extract the list of configured host-only interfaces */ 437 437 std::set<Utf8Str> aConfiguredNames; … … 467 467 } 468 468 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)) */ 470 470 471 471 /* Confirm a successful initialization */ … … 1523 1523 return S_OK; 1524 1524 #else 1525 RT_NOREF(aHostInterface, aProgress); 1525 1526 return E_NOTIMPL; 1526 1527 #endif … … 1584 1585 return r == VERR_NOT_IMPLEMENTED ? E_NOTIMPL : E_FAIL; 1585 1586 #else 1587 RT_NOREF(aId, aProgress); 1586 1588 return E_NOTIMPL; 1587 1589 #endif … … 1753 1755 { 1754 1756 #ifndef VBOX_WITH_HOSTNETIF_API 1757 RT_NOREF(aName, aNetworkInterface); 1755 1758 return E_NOTIMPL; 1756 1759 #else … … 1796 1799 { 1797 1800 #ifndef VBOX_WITH_HOSTNETIF_API 1801 RT_NOREF(aId, aNetworkInterface); 1798 1802 return E_NOTIMPL; 1799 1803 #else … … 1876 1880 return S_OK; 1877 1881 #else 1882 RT_NOREF(aType, aNetworkInterfaces); 1878 1883 return E_NOTIMPL; 1879 1884 #endif -
trunk/src/VBox/Main/src-server/HostNetworkInterfaceImpl.cpp
r93576 r94722 82 82 83 83 unconst(mInterfaceName) = aInterfaceName; 84 #ifdef VBOX_WITH_HOSTNETIF_API 84 85 unconst(mNetworkName) = i_composeNetworkName(aShortName); 86 #endif 85 87 unconst(mShortName) = aShortName; 86 88 unconst(mGuid) = aGuid; … … 541 543 { 542 544 #ifndef VBOX_WITH_HOSTNETIF_API 545 RT_NOREF(aIPAddress, aNetworkMask); 543 546 return E_NOTIMPL; 544 547 #else … … 631 634 { 632 635 #ifndef VBOX_WITH_HOSTNETIF_API 636 RT_NOREF(aIPV6Address, aIPV6NetworkMaskPrefixLength); 633 637 return E_NOTIMPL; 634 638 #else -
trunk/src/VBox/Main/src-server/Performance.cpp
r94088 r94722 678 678 static bool getLinkSpeed(const char *szShortName, uint32_t *pSpeed) 679 679 { 680 # ifdef VBOX_WITH_HOSTNETIF_API 680 681 NETIFSTATUS enmState = NETIF_S_UNKNOWN; 681 682 int vrc = NetIfGetState(szShortName, &enmState); … … 691 692 } 692 693 return true; 694 # else /* !VBOX_WITH_HOSTNETIF_API */ 695 RT_NOREF(szShortName, pSpeed); 696 return false; 697 # endif /* VBOX_WITH_HOSTNETIF_API */ 693 698 } 694 699
Note:
See TracChangeset
for help on using the changeset viewer.