VirtualBox

儲存庫 vbox 的更動 62823


忽略:
時間撮記:
2016-8-1 下午03:11:03 (8 年 以前)
作者:
vboxsync
訊息:

UsbWebcam cleanups, part 3.

位置:
trunk
檔案:
修改 2 筆資料

圖例:

未更動
新增
刪除
  • trunk/include/VBox/vmm/pdmwebcaminfs.h

    r62822 r62823  
    4343typedef struct PDMIWEBCAMDOWN *PPDMIWEBCAMDOWN;
    4444/**
    45  * Web camera driver up interface.
     45 * Web camera driver up (facing in the direction of the device) interface.
    4646 * @todo correct name.
    4747 */
     
    7474#define PDMIWEBCAMDOWN_IID "0d29b9a1-f4cd-4719-a564-38d5634ba9f8"
    7575
     76
    7677/** Pointer to the web camera driver/device down interface. */
    77 typedef struct PDMIWEBCAMUP *PPDMIWEBCAMUP;
     78typedef struct PDMIWEBCAMDEV *PPDMIWEBCAMDEV;
    7879/**
    79  * Web camera driver/device down interface.
    80  * @todo correct name.
     80 * Web camera device(/driver) down interface.
    8181 */
    82 typedef struct PDMIWEBCAMUP
     82typedef struct PDMIWEBCAMDEV
    8383{
    8484    /**
     
    9393     * @param   fCapabilities   The remote video input protocol capabilities.
    9494     */
    95     DECLR3CALLBACKMEMBER(int, pfnAttached,(PPDMIWEBCAMUP pInterface, uint64_t idDevice,
     95    DECLR3CALLBACKMEMBER(int, pfnAttached,(PPDMIWEBCAMDEV pInterface, uint64_t idDevice,
    9696                                           struct VRDEVIDEOINDEVICEDESC const *pDeviceDesc, uint32_t cbDeviceDesc,
    9797                                           uint32_t uVersion, uint32_t fCapabilities));
     
    104104     *                          driver.
    105105     */
    106     DECLR3CALLBACKMEMBER(void, pfnDetached,(PPDMIWEBCAMUP pInterface, uint64_t idDevice));
     106    DECLR3CALLBACKMEMBER(void, pfnDetached,(PPDMIWEBCAMDEV pInterface, uint64_t idDevice));
    107107
    108108    /**
     
    117117     * @param   cbCtrl          The size of the control data.
    118118     */
    119     DECLR3CALLBACKMEMBER(void, pfnControl,(PPDMIWEBCAMUP pInterface, bool fResponse, void *pvUser,
     119    DECLR3CALLBACKMEMBER(void, pfnControl,(PPDMIWEBCAMDEV pInterface, bool fResponse, void *pvUser,
    120120                                           uint64_t idDevice, struct VRDEVIDEOINCTRLHDR const *pCtrl, uint32_t cbCtrl));
    121121
     
    130130     * @param   cbFrame         Size of the image data.
    131131     */
    132     DECLR3CALLBACKMEMBER(void, pfnFrame,(PPDMIWEBCAMUP pInterface, uint64_t idDevice,
     132    DECLR3CALLBACKMEMBER(void, pfnFrame,(PPDMIWEBCAMDEV pInterface, uint64_t idDevice,
    133133                                         struct VRDEVIDEOINPAYLOADHDR const *pHeader, uint32_t cbHeader,
    134134                                         const void *pvFrame, uint32_t cbFrame));
    135 } PDMIWEBCAMUP;
    136 /** Interface ID for PDMIWEBCAMUP. */
    137 #define PDMIWEBCAMUP_IID "6ac03e3c-f56c-4a35-80af-c13ce47a9dd7"
     135} PDMIWEBCAMDEV;
     136/** Interface ID for PDMIWEBCAMDEV. */
     137#define PDMIWEBCAMDEV_IID "6ac03e3c-f56c-4a35-80af-c13ce47a9dd7"
    138138
    139139/** @} */
  • trunk/src/VBox/Main/src-client/UsbWebcamInterface.cpp

    r62822 r62823  
    4545{
    4646    EMWEBCAMREMOTE *pRemote;
    47     PPDMIWEBCAMUP  pIWebcamUp;
     47    PPDMIWEBCAMDEV  pIWebcamUp;
    4848    PDMIWEBCAMDOWN IWebcamDown;
    4949} EMWEBCAMDRV, *PEMWEBCAMDRV;
     
    394394
    395395    /* Check early that there is a device. No need to init anything if there is no device. */
    396     pThis->pIWebcamUp = PDMIBASE_QUERY_INTERFACE(pDrvIns->pUpBase, PDMIWEBCAMUP);
     396    pThis->pIWebcamUp = PDMIBASE_QUERY_INTERFACE(pDrvIns->pUpBase, PDMIWEBCAMDEV);
    397397    if (pThis->pIWebcamUp == NULL)
    398398    {
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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