Changeset 24968 in vbox for trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibSeamless.cpp
- Timestamp:
- Nov 25, 2009 4:53:42 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibSeamless.cpp
r24320 r24968 38 38 * @returns IPRT status value 39 39 * @param fState whether or not we support seamless mode 40 *41 * @todo Currently this will trample over any other capabilities the guest may have.42 * This will have to be fixed when more capabilities are added at the latest.43 40 */ 44 41 VBGLR3DECL(int) VbglR3SeamlessSetCap(bool fState) 45 42 { 46 VMMDevReqGuestCapabilities vmmreqGuestCaps; 47 int rc = VINF_SUCCESS; 48 49 RT_ZERO(vmmreqGuestCaps); 50 vmmdevInitRequest(&vmmreqGuestCaps.header, VMMDevReq_ReportGuestCapabilities); 51 vmmreqGuestCaps.caps = fState ? VMMDEV_GUEST_SUPPORTS_SEAMLESS : 0; 52 rc = vbglR3GRPerform(&vmmreqGuestCaps.header); 53 #ifdef DEBUG /** @todo r=bird: Why the LogRel here? */ 54 if (RT_SUCCESS(rc)) 55 LogRel(("Successfully set the seamless capability on the host.\n")); 56 else 57 LogRel(("Failed to set the seamless capability on the host, rc = %Rrc.\n", rc)); 58 #endif 59 return rc; 43 if (fState) 44 return VbglR3SetGuestCaps(VMMDEV_GUEST_SUPPORTS_SEAMLESS, 0); 45 return VbglR3SetGuestCaps(0, VMMDEV_GUEST_SUPPORTS_SEAMLESS); 60 46 } 61 47
Note:
See TracChangeset
for help on using the changeset viewer.