Changeset 35888 in vbox
- Timestamp:
- Feb 8, 2011 8:58:48 AM (14 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/VirtualBox.xidl
r35887 r35888 7890 7890 </const> 7891 7891 <const name="VBoxGuestDriver" value="20"> 7892 <desc>V BoxGuest base driver.</desc>7892 <desc>VirtualBox base driver (VBoxGuest).</desc> 7893 7893 </const> 7894 7894 <const name="VBoxService" value="100"> 7895 <desc>V BoxService.</desc>7895 <desc>VirtualBox system service (VBoxService).</desc> 7896 7896 </const> 7897 7897 <const name="VBoxTrayClient" value="101"> 7898 <desc>V BoxTray (Windows) / VBoxClient (Non-Windows).</desc>7898 <desc>VirtualBox VBoxTray (Windows) / VBoxClient (Non-Windows).</desc> 7899 7899 </const> 7900 7900 <const name="All" value="999"> … … 7905 7905 <enum 7906 7906 name="AdditionsFacilityStatus" 7907 uuid=" f49bf8c0-e40b-44dd-9db5-8f4196bfda94"7907 uuid="730a42a1-dac6-4194-b394-744a5ea487f3" 7908 7908 > 7909 7909 <desc> … … 7934 7934 <const name="Terminated" value="101"> 7935 7935 <desc>Facility successfully shut down.</desc> 7936 </const> 7937 <const name="Failed" value="800"> 7938 <desc>Facility failed to start.</desc> 7936 7939 </const> 7937 7940 <const name="Unknown" value="999"> -
trunk/src/VBox/Main/include/GuestImpl.h
r35887 r35888 89 89 90 90 // IGuest methods 91 STDMETHOD(GetFacilityStatus)(AdditionsFacilityType aType, LONG LONG*aTimestamp, AdditionsFacilityStatus *aStatus);91 STDMETHOD(GetFacilityStatus)(AdditionsFacilityType aType, LONG64 *aTimestamp, AdditionsFacilityStatus *aStatus); 92 92 STDMETHOD(GetAdditionsStatus)(AdditionsRunLevelType_T aLevel, BOOL *aActive); 93 93 STDMETHOD(SetCredentials)(IN_BSTR aUserName, IN_BSTR aPassword, … … 116 116 void setAdditionsInfo(Bstr aInterfaceVersion, VBOXOSTYPE aOsType); 117 117 void setAdditionsInfo2(Bstr aAdditionsVersion, Bstr aVersionName, Bstr aRevision); 118 void setAdditionsStatus(VBoxGuestStatusFacility Facility, VBoxGuestStatusCurrent Status, ULONG ulFlags);119 void setSupportedFeatures(uint32_t fCaps, uint32_t fActive);118 void setAdditionsStatus(VBoxGuestStatusFacility enmFacility, VBoxGuestStatusCurrent enmStatus, ULONG aFlags); 119 void setSupportedFeatures(uint32_t aCaps); 120 120 HRESULT setStatistic(ULONG aCpuId, GUESTSTATTYPE enmType, ULONG aVal); 121 121 BOOL isPageFusionEnabled(); -
trunk/src/VBox/Main/src-client/GuestImpl.cpp
r35887 r35888 445 445 * @param aTimestamp Timestamp of last facility status update in ms (optional). 446 446 */ 447 STDMETHODIMP Guest::GetFacilityStatus(AdditionsFacilityType aType, LONG LONG*aTimestamp, AdditionsFacilityStatus *aStatus)447 STDMETHODIMP Guest::GetFacilityStatus(AdditionsFacilityType aType, LONG64 *aTimestamp, AdditionsFacilityStatus *aStatus) 448 448 { 449 449 AutoCaller autoCaller(this); … … 626 626 * Gets called by vmmdevUpdateGuestStatus. 627 627 * 628 * @param Facility629 * @param Status630 * @param ulFlags631 */ 632 void Guest::setAdditionsStatus(VBoxGuestStatusFacility Facility, VBoxGuestStatusCurrent Status, ULONG ulFlags)628 * @param enmFacility 629 * @param enmStatus 630 * @param aFlags 631 */ 632 void Guest::setAdditionsStatus(VBoxGuestStatusFacility enmFacility, VBoxGuestStatusCurrent enmStatus, ULONG aFlags) 633 633 { 634 634 AutoCaller autoCaller(this); … … 642 642 643 643 /* First check for disabled status. */ 644 uint32_t uCurFacility = Facility + (Status == VBoxGuestStatusCurrent_Active ? 0 : -1);645 if ( Facility < VBoxGuestStatusFacility_VBoxGuestDriver646 || ( Facility == VBoxGuestStatusFacility_All647 && ( Status == VBoxGuestStatusCurrent_Inactive648 || Status == VBoxGuestStatusCurrent_Disabled644 uint32_t uCurFacility = enmFacility + (enmStatus == VBoxGuestStatusCurrent_Active ? 0 : -1); 645 if ( enmFacility < VBoxGuestStatusFacility_VBoxGuestDriver 646 || ( enmFacility == VBoxGuestStatusFacility_All 647 && ( enmStatus == VBoxGuestStatusCurrent_Inactive 648 || enmStatus == VBoxGuestStatusCurrent_Disabled 649 649 ) 650 650 ) … … 671 671 * Set a specific facility status. 672 672 */ 673 if ( Facility)674 { 675 Assert( Facility < UINT32_MAX);676 FacilityData *pData = &mData.mFacilityMap[(AdditionsFacilityType_T) Facility];673 if (enmFacility) 674 { 675 Assert(enmFacility < UINT32_MAX); 676 FacilityData *pData = &mData.mFacilityMap[(AdditionsFacilityType_T)enmFacility]; 677 677 AssertPtr(pData); 678 678 679 679 RTTimeNow(&pData->tsLastUpdated); 680 pData->curStatus = (AdditionsFacilityStatus_T) Status;680 pData->curStatus = (AdditionsFacilityStatus_T)enmStatus; 681 681 682 682 LogFlowFunc(("Setting guest facility %u = %u (%u)\n", 683 Facility, pData->curStatus, pData->tsLastUpdated));683 enmFacility, pData->curStatus, pData->tsLastUpdated)); 684 684 } 685 685 } … … 689 689 * 690 690 * @param fCaps Guest capability bit mask (VMMDEV_GUEST_SUPPORTS_XXX). 691 * @param fActive No idea what this is supposed to be, it's always 0 and 692 * not references by this method. 693 */ 694 void Guest::setSupportedFeatures(uint32_t fCaps, uint32_t fActive) 691 */ 692 void Guest::setSupportedFeatures(uint32_t aCaps) 695 693 { 696 694 AutoCaller autoCaller(this); … … 699 697 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 700 698 701 mData.mSupportsSeamless = ( fCaps & VMMDEV_GUEST_SUPPORTS_SEAMLESS);699 mData.mSupportsSeamless = (aCaps & VMMDEV_GUEST_SUPPORTS_SEAMLESS); 702 700 /** @todo Add VMMDEV_GUEST_SUPPORTS_GUEST_HOST_WINDOW_MAPPING */ 703 mData.mSupportsGraphics = ( fCaps & VMMDEV_GUEST_SUPPORTS_GRAPHICS);701 mData.mSupportsGraphics = (aCaps & VMMDEV_GUEST_SUPPORTS_GRAPHICS); 704 702 } 705 703 /* vi: set tabstop=4 shiftwidth=4 expandtab: */ -
trunk/src/VBox/Main/src-client/VMMDevInterface.cpp
r35374 r35888 294 294 { 295 295 PDRVMAINVMMDEV pDrv = PDMIVMMDEVCONNECTOR_2_MAINVMMDEV(pInterface); 296 AssertPtr(pDrv); 296 297 Console *pConsole = pDrv->pVMMDev->getParent(); 297 298 298 299 /* store that information in IGuest */ 299 Guest* guest = pConsole->getGuest();300 Assert (guest);301 if (! guest)300 Guest* pGuest = pConsole->getGuest(); 301 AssertPtr(pGuest); 302 if (!pGuest) 302 303 return; 303 304 … … 305 306 * Report our current capabilities (and assume none is active yet). 306 307 */ 307 guest->setSupportedFeatures(newCapabilities, 0 /* Active capabilities, not used here. */);308 pGuest->setSupportedFeatures(newCapabilities); 308 309 309 310 /*
Note:
See TracChangeset
for help on using the changeset viewer.