VirtualBox

Changeset 62824 in vbox


Ignore:
Timestamp:
Aug 1, 2016 3:14:37 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109415
Message:

UsbWebcam cleanups, part 4.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmwebcaminfs.h

    r62823 r62824  
    4141
    4242/** Pointer to the web camera driver up interface. */
    43 typedef struct PDMIWEBCAMDOWN *PPDMIWEBCAMDOWN;
     43typedef struct PDMIWEBCAMDRV *PPDMIWEBCAMDRV;
    4444/**
    4545 * Web camera driver up (facing in the direction of the device) interface.
    4646 * @todo correct name.
    4747 */
    48 typedef struct PDMIWEBCAMDOWN
     48typedef struct PDMIWEBCAMDRV
    4949{
    5050    /**
     
    5454     * @param fReady      Whether the device is ready.
    5555     */
    56     DECLR3CALLBACKMEMBER(void, pfnReady,(PPDMIWEBCAMDOWN pInterface, bool fReady));
     56    DECLR3CALLBACKMEMBER(void, pfnReady,(PPDMIWEBCAMDRV pInterface, bool fReady));
    5757
    5858    /**
     
    6868     * @param cbCtrl        The size of the control data.
    6969     */
    70     DECLR3CALLBACKMEMBER(int, pfnControl,(PPDMIWEBCAMDOWN pInterface, void *pvUser, uint64_t idDevice,
     70    DECLR3CALLBACKMEMBER(int, pfnControl,(PPDMIWEBCAMDRV pInterface, void *pvUser, uint64_t idDevice,
    7171                                          struct VRDEVIDEOINCTRLHDR const *pCtrl, uint32_t cbCtrl));
    72 } PDMIWEBCAMDOWN;
    73 /** Interface ID for PDMIWEBCAMDOWN. */
    74 #define PDMIWEBCAMDOWN_IID "0d29b9a1-f4cd-4719-a564-38d5634ba9f8"
     72} PDMIWEBCAMDRV;
     73/** Interface ID for PDMIWEBCAMDRV. */
     74#define PDMIWEBCAMDRV_IID "0d29b9a1-f4cd-4719-a564-38d5634ba9f8"
    7575
    7676
  • 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.

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