VirtualBox

Changeset 102519 in vbox


Ignore:
Timestamp:
Dec 7, 2023 11:53:39 AM (12 months ago)
Author:
vboxsync
Message:

Fixed tstUsbMouse by faking more PDMUsb callbacks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Input/testcase/tstUsbMouse.cpp

    r98103 r102519  
    9797    g_drvTstMouse.pDrv = PDMIBASE_QUERY_INTERFACE(pBaseInterface, PDMIMOUSEPORT);
    9898    *ppBaseInterface = &g_drvTstMouse.IBase;
     99    return VINF_SUCCESS;
     100}
     101
     102
     103/** @interface_method_impl{PDMUSBHLP,pfnTimerCreate} */
     104static DECLCALLBACK(int) tstTimerCreate(PPDMUSBINS pUsbIns, TMCLOCK enmClock, PFNTMTIMERUSB pfnCallback, void *pvUser,
     105                                        uint32_t fFlags, const char *pszDesc, PTMTIMERHANDLE phTimer)
     106{
     107    RT_NOREF7(pUsbIns, enmClock, pfnCallback, pvUser, fFlags, pszDesc, phTimer);
     108    return VINF_SUCCESS;
     109}
     110
     111
     112/** @interface_method_impl{PDMUSBHLP,pfnTimerCreate} */
     113static DECLCALLBACK(int) tstTimerDestroy(PPDMUSBINS pUsbIns, TMTIMERHANDLE hTimer)
     114{
     115    RT_NOREF2(pUsbIns, hTimer);
    99116    return VINF_SUCCESS;
    100117}
     
    394411    g_tstUsbHlp.pfnVMSetErrorV  = tstVMSetErrorV;
    395412    g_tstUsbHlp.pfnDriverAttach = tstDriverAttach;
     413    g_tstUsbHlp.pfnTimerCreate  = tstTimerCreate;
     414    g_tstUsbHlp.pfnTimerDestroy = tstTimerDestroy;
    396415    g_tstUsbHlp.pfnCFGMValidateConfig = CFGMR3ValidateConfig;
    397416    g_tstUsbHlp.pfnCFGMQueryStringDef = CFGMR3QueryStringDef;
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