VirtualBox

Ignore:
Timestamp:
Sep 5, 2017 5:22:12 PM (7 years ago)
Author:
vboxsync
Message:

VBoxGuestR0Lib: Function prefix and DECL macro cleanups.

Location:
trunk/src/VBox/Additions/WINNT/Mouse
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Mouse/NT4/VBoxPS2NT.cpp

    r68636 r68654  
    14651465                    if (pReq)
    14661466                    {
    1467                         int rc = VbglGRPerform (&pReq->header);
     1467                        int rc = VbglR0GRPerform (&pReq->header);
    14681468                        if (RT_SUCCESS(rc))
    14691469                        {
     
    15071507                if (pReq)
    15081508                {
    1509                     int rc = VbglGRPerform(&pReq->header);
     1509                    int rc = VbglR0GRPerform(&pReq->header);
    15101510                    if (RT_SUCCESS(rc))
    15111511                    {
     
    21422142        VMMDevReqMouseStatus *pReq = NULL;
    21432143
    2144         rcVBox = VbglGRAlloc((VMMDevRequestHeader**)&pReq, sizeof(VMMDevReqMouseStatus), VMMDevReq_SetMouseStatus);
     2144        rcVBox = VbglR0GRAlloc((VMMDevRequestHeader**)&pReq, sizeof(VMMDevReqMouseStatus), VMMDevReq_SetMouseStatus);
    21452145        if (RT_SUCCESS(rcVBox))
    21462146        {
     
    21492149            pReq->pointerXPos = 0;
    21502150            pReq->pointerYPos = 0;
    2151             rcVBox = VbglGRPerform(&pReq->header);
     2151            rcVBox = VbglR0GRPerform(&pReq->header);
    21522152            if (RT_FAILURE(rcVBox))
    21532153                Log(("VBoxMouseNT::DriverEntry: ERROR communicating new mouse capabilities to VMMDev. rc = %Rrc\n", rcVBox));
  • trunk/src/VBox/Additions/WINNT/Mouse/NT5/VBoxMFInternal.cpp

    r68633 r68654  
    111111    if (g_ctx.fIsNewProtEnabled)
    112112        return true;
    113     int rc = VbglSetMouseNotifyCallback(vboxNewProtMouseEventCb, NULL);
     113    int rc = VbglR0SetMouseNotifyCallback(vboxNewProtMouseEventCb, NULL);
    114114    if (RT_SUCCESS(rc))
    115115    {
     
    118118        return true;
    119119    }
    120     WARN(("VbglSetMouseNotifyCallback failed: %Rrc", rc));
     120    WARN(("VbglR0SetMouseNotifyCallback failed: %Rrc", rc));
    121121    return false;
    122122}
     
    133133    {
    134134        g_ctx.fIsNewProtEnabled = false;
    135         int rc = VbglSetMouseNotifyCallback(NULL, NULL);
     135        int rc = VbglR0SetMouseNotifyCallback(NULL, NULL);
    136136        if (RT_FAILURE(rc))
    137             WARN(("VbglSetMouseNotifyCallback failed: %Rrc", rc));
     137            WARN(("VbglR0SetMouseNotifyCallback failed: %Rrc", rc));
    138138    }
    139139}
     
    202202    if (pDevExt->pSCReq)
    203203    {
    204         int rc = VbglGRPerform(&pDevExt->pSCReq->header);
     204        int rc = VbglR0GRPerform(&pDevExt->pSCReq->header);
    205205        if (RT_SUCCESS(rc))
    206206        {
     
    225225        else
    226226        {
    227             WARN(("VbglGRPerform failed with rc=%Rrc", rc));
     227            WARN(("VbglR0GRPerform failed with rc=%Rrc", rc));
    228228        }
    229229    }
     
    380380        {
    381381            VMMDevReqMouseStatus *req = NULL;
    382             int rc = VbglGRAlloc((VMMDevRequestHeader **)&req, sizeof(VMMDevReqMouseStatus), VMMDevReq_SetMouseStatus);
     382            int rc = VbglR0GRAlloc((VMMDevRequestHeader **)&req, sizeof(VMMDevReqMouseStatus), VMMDevReq_SetMouseStatus);
    383383            if (RT_SUCCESS(rc))
    384384            {
     
    390390                req->pointerYPos = 0;
    391391
    392                 rc = VbglGRPerform(&req->header);
     392                rc = VbglR0GRPerform(&req->header);
    393393                if (RT_SUCCESS(rc))
    394394                    InterlockedExchange(&g_ctx.fHostInformed, TRUE);
    395395                else
    396                     WARN(("VbglGRPerform failed with rc=%Rrc", rc));
    397 
    398                 VbglGRFree(&req->header);
     396                    WARN(("VbglR0GRPerform failed with rc=%Rrc", rc));
     397
     398                VbglR0GRFree(&req->header);
    399399            }
    400400            else
    401                 WARN(("VbglGRAlloc failed with rc=%Rrc", rc));
     401                WARN(("VbglR0GRAlloc failed with rc=%Rrc", rc));
    402402        }
    403403
     
    406406        {
    407407            VMMDevReqMouseStatus *req = NULL;
    408             int rc = VbglGRAlloc((VMMDevRequestHeader **)&req, sizeof(VMMDevReqMouseStatus), VMMDevReq_GetMouseStatus);
     408            int rc = VbglR0GRAlloc((VMMDevRequestHeader **)&req, sizeof(VMMDevReqMouseStatus), VMMDevReq_GetMouseStatus);
    409409            if (RT_SUCCESS(rc))
    410410                InterlockedExchangePointer((PVOID volatile *)&pDevExt->pSCReq, req);
    411411            else
    412412            {
    413                 WARN(("VbglGRAlloc for service callback failed with rc=%Rrc", rc));
     413                WARN(("VbglR0GRAlloc for service callback failed with rc=%Rrc", rc));
    414414            }
    415415        }
     
    430430    {
    431431        VMMDevReqMouseStatus *req = NULL;
    432         int rc = VbglGRAlloc((VMMDevRequestHeader **)&req, sizeof(VMMDevReqMouseStatus), VMMDevReq_SetMouseStatus);
     432        int rc = VbglR0GRAlloc((VMMDevRequestHeader **)&req, sizeof(VMMDevReqMouseStatus), VMMDevReq_SetMouseStatus);
    433433        if (RT_SUCCESS(rc))
    434434        {
     
    437437            req->pointerYPos = 0;
    438438
    439             rc = VbglGRPerform(&req->header);
     439            rc = VbglR0GRPerform(&req->header);
    440440            if (RT_FAILURE(rc))
    441                 WARN(("VbglGRPerform failed with rc=%Rrc", rc));
    442 
    443             VbglGRFree(&req->header);
     441                WARN(("VbglR0GRPerform failed with rc=%Rrc", rc));
     442
     443            VbglR0GRFree(&req->header);
    444444        }
    445445        else
    446             WARN(("VbglGRAlloc failed with rc=%Rrc", rc));
     446            WARN(("VbglR0GRAlloc failed with rc=%Rrc", rc));
    447447
    448448        InterlockedExchange(&g_ctx.fHostInformed, FALSE);
     
    464464    KeReleaseSpinLock(&g_ctx.SyncLock, Irql);
    465465    if (pSCReq)
    466         VbglGRFree(&pSCReq->header);
     466        VbglR0GRFree(&pSCReq->header);
    467467
    468468    /*
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