Changeset 8328 in vbox
- Timestamp:
- Apr 23, 2008 1:17:00 PM (17 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxGuest
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp
r8318 r8328 521 521 522 522 523 /** @todo XXX: This should later be done as a proper IOCtl request. Currently we call this from Ring-0. */ 524 int VBoxGuestSetGuestCapabilities(uint32_t u32OrMask, uint32_t u32NotMask) 525 { 526 int rc; 523 /** 524 * Modifies the guest capabilities. 525 * 526 * Should be called during driver init and termination. 527 * 528 * @returns VBox status code. 529 * @param fOr The Or mask (what to enable). 530 * @param fNot The Not mask (what to disable). 531 */ 532 int VBoxGuestSetGuestCapabilities(uint32_t fOr, uint32_t fNot) 533 { 527 534 VMMDevReqGuestCapabilities2 *pReq; 528 rc = VbglGRAlloc((VMMDevRequestHeader **)&pReq, sizeof(*pReq), VMMDevReq_SetGuestCapabilities);535 int rc = VbglGRAlloc((VMMDevRequestHeader **)&pReq, sizeof(*pReq), VMMDevReq_SetGuestCapabilities); 529 536 if (RT_FAILURE(rc)) 530 537 { … … 534 541 } 535 542 536 pReq->u32OrMask = u32OrMask;537 pReq->u32NotMask = u32NotMask;543 pReq->u32OrMask = fOr; 544 pReq->u32NotMask = fNot; 538 545 539 546 rc = VbglGRPerform(&pReq->header); -
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuestInternal.h
r8318 r8328 152 152 void VBoxGuestDeleteDevExt(PVBOXGUESTDEVEXT pDevExt); 153 153 bool VBoxGuestCommonISR(PVBOXGUESTDEVEXT pDevExt); 154 int VBoxGuestSetGuestCapabilities(uint32_t u32OrMask, uint32_t u32NotMask);154 int VBoxGuestSetGuestCapabilities(uint32_t fOr, uint32_t fNot); 155 155 156 156 int VBoxGuestCreateUserSession(PVBOXGUESTDEVEXT pDevExt, PVBOXGUESTSESSION *ppSession);
Note:
See TracChangeset
for help on using the changeset viewer.