VirtualBox

Changeset 62824 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Aug 1, 2016 3:14:37 PM (8 years ago)
Author:
vboxsync
Message:

UsbWebcam cleanups, part 4.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/UsbWebcamInterface.cpp

    r62823 r62824  
    4646    EMWEBCAMREMOTE *pRemote;
    4747    PPDMIWEBCAMDEV  pIWebcamUp;
    48     PDMIWEBCAMDOWN IWebcamDown;
     48    PDMIWEBCAMDRV   IWebcamDrv;
    4949} EMWEBCAMDRV, *PEMWEBCAMDRV;
    5050
     
    5656
    5757
    58 static DECLCALLBACK(void) drvEmWebcamReady(PPDMIWEBCAMDOWN pInterface,
     58static DECLCALLBACK(void) drvEmWebcamReady(PPDMIWEBCAMDRV pInterface,
    5959                                           bool fReady)
    6060{
    6161    NOREF(fReady);
    6262
    63     PEMWEBCAMDRV pThis = RT_FROM_MEMBER(pInterface, EMWEBCAMDRV, IWebcamDown);
     63    PEMWEBCAMDRV pThis = RT_FROM_MEMBER(pInterface, EMWEBCAMDRV, IWebcamDrv);
    6464    EMWEBCAMREMOTE *pRemote = pThis->pRemote;
    6565
     
    7777}
    7878
    79 static DECLCALLBACK(int) drvEmWebcamControl(PPDMIWEBCAMDOWN pInterface,
     79static DECLCALLBACK(int) drvEmWebcamControl(PPDMIWEBCAMDRV pInterface,
    8080                                            void *pvUser,
    8181                                            uint64_t u64DeviceId,
     
    8383                                            uint32_t cbCtrl)
    8484{
    85     PEMWEBCAMDRV pThis = RT_FROM_MEMBER(pInterface, EMWEBCAMDRV, IWebcamDown);
     85    PEMWEBCAMDRV pThis = RT_FROM_MEMBER(pInterface, EMWEBCAMDRV, IWebcamDrv);
    8686    EMWEBCAMREMOTE *pRemote = pThis->pRemote;
    8787
     
    363363
    364364    PDMIBASE_RETURN_INTERFACE(pszIID, PDMIBASE, &pDrvIns->IBase);
    365     PDMIBASE_RETURN_INTERFACE(pszIID, PDMIWEBCAMDOWN, &pThis->IWebcamDown);
     365    PDMIBASE_RETURN_INTERFACE(pszIID, PDMIWEBCAMDRV, &pThis->IWebcamDrv);
    366366    return NULL;
    367367}
     
    414414    pDrvIns->IBase.pfnQueryInterface = drvQueryInterface;
    415415
    416     pThis->IWebcamDown.pfnReady   = drvEmWebcamReady;
    417     pThis->IWebcamDown.pfnControl = drvEmWebcamControl;
     416    pThis->IWebcamDrv.pfnReady   = drvEmWebcamReady;
     417    pThis->IWebcamDrv.pfnControl = drvEmWebcamControl;
    418418
    419419    return VINF_SUCCESS;
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