VirtualBox

Changeset 71597 in vbox for trunk/src


Ignore:
Timestamp:
Mar 31, 2018 9:32:29 PM (7 years ago)
Author:
vboxsync
Message:

DevVGA,VBoxVideo: Code cleanup in progress. bugref:9094

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/DisplayImpl.h

    r71590 r71597  
    174174    void i_handleCrHgsmiCommandCompletion(int32_t result, uint32_t u32Function, PVBOXHGCMSVCPARM pParam);
    175175    void i_handleCrHgsmiControlCompletion(int32_t result, uint32_t u32Function, PVBOXHGCMSVCPARM pParam);
    176     void i_handleCrHgsmiCommandProcess(PVBOXVDMACMD_CHROMIUM_CMD pCmd, uint32_t cbCmd);
    177     void i_handleCrHgsmiControlProcess(PVBOXVDMACMD_CHROMIUM_CTL pCtl, uint32_t cbCtl);
     176    void i_handleCrHgsmiCommandProcess(VBOXVDMACMD_CHROMIUM_CMD RT_UNTRUSTED_VOLATILE_GUEST *pCmd, uint32_t cbCmd);
     177    void i_handleCrHgsmiControlProcess(VBOXVDMACMD_CHROMIUM_CTL RT_UNTRUSTED_VOLATILE_GUEST *pCtl, uint32_t cbCtl);
    178178#endif
    179179#if defined(VBOX_WITH_HGCM) && defined(VBOX_WITH_CROGL)
    180     int  i_handleCrHgcmCtlSubmit(struct VBOXCRCMDCTL* pCmd, uint32_t cbCmd,
    181                                  PFNCRCTLCOMPLETION pfnCompletion,
    182                                  void *pvCompletion);
     180    int  i_handleCrHgcmCtlSubmit(struct VBOXCRCMDCTL RT_UNTRUSTED_VOLATILE_GUEST *pCmd, uint32_t cbCmd,
     181                                 PFNCRCTLCOMPLETION pfnCompletion, void *pvCompletion);
    183182    void  i_handleCrVRecScreenshotPerform(uint32_t uScreen,
    184183                                          uint32_t x, uint32_t y, uint32_t uPixelFormat, uint32_t uBitsPerPixel,
     
    345344#ifdef VBOX_WITH_CRHGSMI
    346345    static DECLCALLBACK(void)  i_displayCrHgsmiCommandProcess(PPDMIDISPLAYCONNECTOR pInterface,
    347                                                               PVBOXVDMACMD_CHROMIUM_CMD pCmd, uint32_t cbCmd);
    348     static DECLCALLBACK(void)  i_displayCrHgsmiControlProcess(PPDMIDISPLAYCONNECTOR pInterface, PVBOXVDMACMD_CHROMIUM_CTL pCtl,
     346                                                              VBOXVDMACMD_CHROMIUM_CMD RT_UNTRUSTED_VOLATILE_GUEST *pCmd,
     347                                                              uint32_t cbCmd);
     348    static DECLCALLBACK(void)  i_displayCrHgsmiControlProcess(PPDMIDISPLAYCONNECTOR pInterface,
     349                                                              VBOXVDMACMD_CHROMIUM_CTL RT_UNTRUSTED_VOLATILE_GUEST *pCtl,
    349350                                                              uint32_t cbCtl);
    350351
     
    355356#endif
    356357#if defined(VBOX_WITH_HGCM) && defined(VBOX_WITH_CROGL)
    357     static DECLCALLBACK(int)  i_displayCrHgcmCtlSubmit(PPDMIDISPLAYCONNECTOR pInterface,
    358                                                        struct VBOXCRCMDCTL* pCmd, uint32_t cbCmd,
    359                                                        PFNCRCTLCOMPLETION pfnCompletion,
    360                                                        void *pvCompletion);
     358    static DECLCALLBACK(int)  i_displayCrHgcmCtlSubmit(PPDMIDISPLAYCONNECTOR pInterface, struct VBOXCRCMDCTL *pCmd, uint32_t cbCmd,
     359                                                       PFNCRCTLCOMPLETION pfnCompletion, void *pvCompletion);
    361360    static DECLCALLBACK(void) i_displayCrHgcmCtlSubmitCompletion(int32_t result, uint32_t u32Function, PVBOXHGCMSVCPARM pParam,
    362361                                                                 void *pvContext);
     
    395394    static DECLCALLBACK(void) i_displayVRecCompletion(struct VBOXCRCMDCTL* pCmd, uint32_t cbCmd, int rc, void *pvCompletion);
    396395#endif
    397     static DECLCALLBACK(void) i_displayCrCmdFree(struct VBOXCRCMDCTL* pCmd, uint32_t cbCmd, int rc, void *pvCompletion);
     396    static DECLCALLBACK(void) i_displayCrCmdFree(struct VBOXCRCMDCTL *pCmd, uint32_t cbCmd, int rc, void *pvCompletion);
    398397
    399398    static DECLCALLBACK(void) i_displaySSMSaveScreenshot(PSSMHANDLE pSSM, void *pvUser);
     
    491490    static BOOL  i_displayCheckTakeScreenshotCrOgl(Display *pDisplay, ULONG aScreenId, uint8_t *pbData,
    492491                                                   uint32_t u32Width, uint32_t u32Height);
    493     int i_crCtlSubmit(struct VBOXCRCMDCTL* pCmd, uint32_t cbCmd, PFNCRCTLCOMPLETION pfnCompletion, void *pvCompletion);
    494     int i_crCtlSubmitSync(struct VBOXCRCMDCTL* pCmd, uint32_t cbCmd);
     492    int i_crCtlSubmit(struct VBOXCRCMDCTL *pCmd, uint32_t cbCmd, PFNCRCTLCOMPLETION pfnCompletion, void *pvCompletion);
     493    int i_crCtlSubmitSync(struct VBOXCRCMDCTL *pCmd, uint32_t cbCmd);
    495494    /* copies the given command and submits it asynchronously,
    496495     * i.e. the pCmd data may be discarded right after the call returns */
  • trunk/src/VBox/Main/src-client/DisplayImpl.cpp

    r71590 r71597  
    795795}
    796796
    797 DECLCALLBACK(void) Display::i_displayCrCmdFree(struct VBOXCRCMDCTL* pCmd, uint32_t cbCmd, int rc, void *pvCompletion)
     797DECLCALLBACK(void) Display::i_displayCrCmdFree(struct VBOXCRCMDCTL *pCmd, uint32_t cbCmd, int rc, void *pvCompletion)
    798798{
    799799    RT_NOREF(pCmd, cbCmd, rc);
    800800    Assert(pvCompletion);
    801     RTMemFree(pvCompletion);
     801    RTMemFree((void *)pvCompletion);
    802802}
    803803
     
    35833583}
    35843584
    3585 void Display::i_handleCrHgsmiCommandProcess(PVBOXVDMACMD_CHROMIUM_CMD pCmd, uint32_t cbCmd)
     3585void Display::i_handleCrHgsmiCommandProcess(VBOXVDMACMD_CHROMIUM_CMD RT_UNTRUSTED_VOLATILE_GUEST *pCmd, uint32_t cbCmd)
    35863586{
    35873587    int rc = VERR_NOT_SUPPORTED;
    35883588    VBOXHGCMSVCPARM parm;
    35893589    parm.type = VBOX_HGCM_SVC_PARM_PTR;
    3590     parm.u.pointer.addr = pCmd;
     3590    parm.u.pointer.addr = (void *)pCmd;
    35913591    parm.u.pointer.size = cbCmd;
    35923592
     
    36113611}
    36123612
    3613 void Display::i_handleCrHgsmiControlProcess(PVBOXVDMACMD_CHROMIUM_CTL pCtl, uint32_t cbCtl)
     3613void Display::i_handleCrHgsmiControlProcess(VBOXVDMACMD_CHROMIUM_CTL RT_UNTRUSTED_VOLATILE_GUEST *pCtl, uint32_t cbCtl)
    36143614{
    36153615    int rc = VERR_NOT_SUPPORTED;
    36163616    VBOXHGCMSVCPARM parm;
    36173617    parm.type = VBOX_HGCM_SVC_PARM_PTR;
    3618     parm.u.pointer.addr = pCtl;
     3618    parm.u.pointer.addr = (void *)pCtl;
    36193619    parm.u.pointer.size = cbCtl;
    36203620
     
    36613661}
    36623662
    3663 DECLCALLBACK(void) Display::i_displayCrHgsmiCommandProcess(PPDMIDISPLAYCONNECTOR pInterface, PVBOXVDMACMD_CHROMIUM_CMD pCmd,
     3663DECLCALLBACK(void) Display::i_displayCrHgsmiCommandProcess(PPDMIDISPLAYCONNECTOR pInterface,
     3664                                                           VBOXVDMACMD_CHROMIUM_CMD RT_UNTRUSTED_VOLATILE_GUEST *pCmd,
    36643665                                                           uint32_t cbCmd)
    36653666{
     
    36693670}
    36703671
    3671 DECLCALLBACK(void) Display::i_displayCrHgsmiControlProcess(PPDMIDISPLAYCONNECTOR pInterface, PVBOXVDMACMD_CHROMIUM_CTL pCmd,
     3672DECLCALLBACK(void) Display::i_displayCrHgsmiControlProcess(PPDMIDISPLAYCONNECTOR pInterface,
     3673                                                           VBOXVDMACMD_CHROMIUM_CTL RT_UNTRUSTED_VOLATILE_GUEST *pCmd,
    36723674                                                           uint32_t cbCmd)
    36733675{
     
    37043706}
    37053707
    3706 int  Display::i_handleCrHgcmCtlSubmit(struct VBOXCRCMDCTL* pCmd, uint32_t cbCmd,
    3707                                     PFNCRCTLCOMPLETION pfnCompletion,
    3708                                     void *pvCompletion)
     3708int  Display::i_handleCrHgcmCtlSubmit(struct VBOXCRCMDCTL RT_UNTRUSTED_VOLATILE_GUEST *pCmd, uint32_t cbCmd,
     3709                                    PFNCRCTLCOMPLETION pfnCompletion, void *pvCompletion)
    37093710{
    37103711    VMMDev *pVMMDev = mParent ? mParent->i_getVMMDev() : NULL;
     
    37183719    VBOXHGCMSVCPARM parm;
    37193720    parm.type = VBOX_HGCM_SVC_PARM_PTR;
    3720     parm.u.pointer.addr = pCmd;
     3721    parm.u.pointer.addr = (void *)pCmd;
    37213722    parm.u.pointer.size = cbCmd;
    37223723
     
    37303731}
    37313732
    3732 DECLCALLBACK(int)  Display::i_displayCrHgcmCtlSubmit(PPDMIDISPLAYCONNECTOR pInterface,
    3733                                                      struct VBOXCRCMDCTL* pCmd, uint32_t cbCmd,
    3734                                                      PFNCRCTLCOMPLETION pfnCompletion,
    3735                                                      void *pvCompletion)
     3733DECLCALLBACK(int)  Display::i_displayCrHgcmCtlSubmit(PPDMIDISPLAYCONNECTOR pInterface, struct VBOXCRCMDCTL *pCmd, uint32_t cbCmd,
     3734                                                     PFNCRCTLCOMPLETION pfnCompletion, void *pvCompletion)
    37363735{
    37373736    PDRVMAINDISPLAY pDrv = PDMIDISPLAYCONNECTOR_2_MAINDISPLAY(pInterface);
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