Changeset 85737 in vbox
- Timestamp:
- Aug 12, 2020 9:17:50 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 139885
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/VBox/Main/Makefile.kmk ¶
r85683 r85737 477 477 $(if $(VBOX_USB_WITH_INOTIFY),VBOX_USB_WITH_INOTIFY,) \ 478 478 $(if $(VBOX_WITH_NAT_SERVICE),VBOX_WITH_NAT_SERVICE,) \ 479 $(if $(VBOX_WITH_LIBCURL),VBOX_WITH_HOST_UPDATE_CHECK,) \ 479 480 $(if-expr defined(VBOX_WITH_SDS),VBOX_WITH_SDS,) 480 481 ifdef VBOX_WITH_USB -
TabularUnified trunk/src/VBox/Main/include/HostUpdateImpl.h ¶
r85735 r85737 49 49 /** @} */ 50 50 51 #ifdef VBOX_WITH_HOST_UPDATE_CHECK 51 52 Utf8Str i_platformInfo(); 52 53 class UpdateCheckTask; … … 55 56 HRESULT i_checkForVBoxUpdateInner(RTHTTP hHttp, com::Utf8Str const &strUrl, com::Utf8Str const &strUserAgent, 56 57 ComPtr<ISystemProperties> const &ptrSystemProperties); 58 #endif 57 59 58 60 /** @name Data members. -
TabularUnified trunk/src/VBox/Main/src-server/HostUpdateImpl.cpp ¶
r85736 r85737 52 52 //////////////////////////////////////////////////////////////////////////////// 53 53 54 #ifdef VBOX_WITH_HOST_UPDATE_CHECK 54 55 55 56 class HostUpdate::UpdateCheckTask : public ThreadTask … … 95 96 Utf8Str strPlatform; 96 97 97 # if defined (RT_OS_WINDOWS)98 # if defined (RT_OS_WINDOWS) 98 99 strPlatform = "win"; 99 # elif defined (RT_OS_LINUX)100 # elif defined (RT_OS_LINUX) 100 101 strPlatform = "linux"; 101 # elif defined (RT_OS_DARWIN)102 # elif defined (RT_OS_DARWIN) 102 103 strPlatform = "macosx"; 103 # elif defined (RT_OS_OS2)104 # elif defined (RT_OS_OS2) 104 105 strPlatform = "os2"; 105 # elif defined (RT_OS_FREEBSD)106 # elif defined (RT_OS_FREEBSD) 106 107 strPlatform = "freebsd"; 107 # elif defined (RT_OS_SOLARIS)108 # elif defined (RT_OS_SOLARIS) 108 109 strPlatform = "solaris"; 109 # else110 # else 110 111 strPlatform = "unknown"; 111 # endif112 # endif 112 113 113 114 /* The format is <system>.<bitness>: */ … … 116 117 /* Add more system information: */ 117 118 int vrc; 118 # ifdef RT_OS_LINUX119 # ifdef RT_OS_LINUX 119 120 // WORKAROUND: 120 121 // On Linux we try to generate information using script first of all.. … … 224 225 225 226 if (RT_FAILURE(vrc)) 226 # endif /* RT_OS_LINUX */227 # endif /* RT_OS_LINUX */ 227 228 { 228 229 /* Use RTSystemQueryOSInfo: */ … … 493 494 hrc = i_checkForVBoxUpdate(); 494 495 break; 495 # if 0496 # if 0 496 497 case UpdateCheckType_ExtensionPack: 497 498 hrc = i_checkForExtPackUpdate(); … … 501 502 hrc = i_checkForGuestAdditionsUpdate(); 502 503 break; 503 # endif504 # endif 504 505 default: 505 506 hrc = setError(E_FAIL, tr("Update check type %d is not implemented"), pTask->m_checkType); … … 522 523 } 523 524 525 #endif /* VBOX_WITH_HOST_UPDATE_CHECK */ 526 527 524 528 //////////////////////////////////////////////////////////////////////////////// 525 529 // … … 573 577 ComPtr<IProgress> &aProgress) 574 578 { 579 #ifdef VBOX_WITH_HOST_UPDATE_CHECK 575 580 /* Validate input */ 576 581 switch (aCheckType) … … 632 637 633 638 return rc; 639 #else /* !VBOX_WITH_HOST_UPDATE_CHECK */ 640 return setError(E_NOTIMPL, tr("Update checking support was not compiled into this VirtualBox build")); 641 #endif /* !VBOX_WITH_HOST_UPDATE_CHECK */ 634 642 } 635 643
Note:
See TracChangeset
for help on using the changeset viewer.