Changeset 27309 in vbox for trunk/src/VBox/Additions/common/VBoxGuestLib
- Timestamp:
- Mar 11, 2010 11:19:50 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibSeamless.cpp
r26425 r27309 67 67 int rc; 68 68 69 #if !defined(VBOX_VBGLR3_XFREE86) 69 70 AssertPtrReturn(pMode, VERR_INVALID_PARAMETER); 71 #endif 70 72 waitEvent.u32TimeoutIn = RT_INDEFINITE_WAIT; 71 73 waitEvent.u32EventMaskIn = VMMDEV_EVENT_SEAMLESS_MODE_CHANGE_REQUEST; … … 92 94 else 93 95 rc = VERR_TRY_AGAIN; 96 } 97 return rc; 98 } 99 100 /** 101 * Request the last seamless mode switch from the host again. 102 * 103 * @returns IPRT status value 104 * @retval pMode on success, the seamless mode that was switched into (i.e. 105 * disabled, visible region or host window) 106 */ 107 VBGLR3DECL(int) VbglR3SeamlessGetLastEvent(VMMDevSeamlessMode *pMode) 108 { 109 int rc; 110 111 #if !defined(VBOX_VBGLR3_XFREE86) 112 AssertPtrReturn(pMode, VERR_INVALID_PARAMETER); 113 #endif 114 VMMDevSeamlessChangeRequest seamlessChangeRequest; 115 116 /* get the seamless change request */ 117 vmmdevInitRequest(&seamlessChangeRequest.header, VMMDevReq_GetSeamlessChangeRequest); 118 seamlessChangeRequest.eventAck = VMMDEV_EVENT_SEAMLESS_MODE_CHANGE_REQUEST; 119 rc = vbglR3GRPerform(&seamlessChangeRequest.header); 120 if (RT_SUCCESS(rc)) 121 { 122 *pMode = seamlessChangeRequest.mode; 123 return VINF_SUCCESS; 94 124 } 95 125 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.