VirtualBox

Changeset 8328 in vbox


Ignore:
Timestamp:
Apr 23, 2008 1:17:00 PM (17 years ago)
Author:
vboxsync
Message:

Added missing docs and corrected spelling.

Location:
trunk/src/VBox/Additions/common/VBoxGuest
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp

    r8318 r8328  
    521521
    522522
    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 */
     532int VBoxGuestSetGuestCapabilities(uint32_t fOr, uint32_t fNot)
     533{
    527534    VMMDevReqGuestCapabilities2 *pReq;
    528     rc = VbglGRAlloc((VMMDevRequestHeader **)&pReq, sizeof(*pReq), VMMDevReq_SetGuestCapabilities);
     535    int rc = VbglGRAlloc((VMMDevRequestHeader **)&pReq, sizeof(*pReq), VMMDevReq_SetGuestCapabilities);
    529536    if (RT_FAILURE(rc))
    530537    {
     
    534541    }
    535542
    536     pReq->u32OrMask = u32OrMask;
    537     pReq->u32NotMask = u32NotMask;
     543    pReq->u32OrMask = fOr;
     544    pReq->u32NotMask = fNot;
    538545
    539546    rc = VbglGRPerform(&pReq->header);
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuestInternal.h

    r8318 r8328  
    152152void VBoxGuestDeleteDevExt(PVBOXGUESTDEVEXT pDevExt);
    153153bool VBoxGuestCommonISR(PVBOXGUESTDEVEXT pDevExt);
    154 int  VBoxGuestSetGuestCapabilities(uint32_t u32OrMask, uint32_t u32NotMask);
     154int  VBoxGuestSetGuestCapabilities(uint32_t fOr, uint32_t fNot);
    155155
    156156int  VBoxGuestCreateUserSession(PVBOXGUESTDEVEXT pDevExt, PVBOXGUESTSESSION *ppSession);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette