VirtualBox

Changeset 94342 in vbox for trunk/include/VBox/vmm/pdmusb.h


Ignore:
Timestamp:
Mar 23, 2022 7:53:21 PM (3 years ago)
Author:
vboxsync
Message:

Main,VMM/PDMUsb,Devices/USB,VRDP: Drop passing pointers through CFGM in favor of using VMM2USERMETHODS::pfnQueryGenericObject, bugref:10053

File:
1 edited

Legend:

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

    r93115 r94342  
    916916    DECLR3CALLBACKMEMBER(VMRESUMEREASON, pfnVMGetResumeReason,(PPDMUSBINS pUsbIns));
    917917
     918    /**
     919     * Queries a generic object from the VMM user.
     920     *
     921     * @returns Pointer to the object if found, NULL if not.
     922     * @param   pUsbIns             The USB device instance.
     923     * @param   pUuid               The UUID of what's being queried.  The UUIDs and
     924     *                              the usage conventions are defined by the user.
     925     */
     926    DECLR3CALLBACKMEMBER(void *, pfnQueryGenericUserObject,(PPDMUSBINS pUsbIns, PCRTUUID pUuid));
     927
    918928    /** @name Space reserved for minor interface changes.
    919929     * @{ */
     
    927937    DECLR3CALLBACKMEMBER(void, pfnReserved7,(PPDMUSBINS pUsbIns));
    928938    DECLR3CALLBACKMEMBER(void, pfnReserved8,(PPDMUSBINS pUsbIns));
    929     DECLR3CALLBACKMEMBER(void, pfnReserved9,(PPDMUSBINS pUsbIns));
    930939    /** @}  */
    931940
     
    939948
    940949/** Current USBHLP version number. */
    941 #define PDM_USBHLP_VERSION                      PDM_VERSION_MAKE(0xeefe, 6, 0)
     950#define PDM_USBHLP_VERSION                      PDM_VERSION_MAKE(0xeefe, 6, 1)
    942951
    943952#endif /* IN_RING3 */
     
    14141423}
    14151424
     1425/**
     1426 * @copydoc PDMUSBHLP::pfnQueryGenericUserObject
     1427 */
     1428DECLINLINE(void *) PDMUsbHlpQueryGenericUserObject(PPDMUSBINS pUsbIns, PCRTUUID pUuid)
     1429{
     1430    return pUsbIns->pHlpR3->pfnQueryGenericUserObject(pUsbIns, pUuid);
     1431}
     1432
    14161433#endif /* IN_RING3 */
    14171434
     
    14591476VMMR3DECL(int)  PDMR3UsbCreateEmulatedDevice(PUVM pUVM, const char *pszDeviceName, PCFGMNODE pDeviceNode, PCRTUUID pUuid,
    14601477                                             const char *pszCaptureFilename);
    1461 VMMR3DECL(int)  PDMR3UsbCreateProxyDevice(PUVM pUVM, PCRTUUID pUuid, const char *pszBackend, const char *pszAddress, void *pvBackend,
     1478VMMR3DECL(int)  PDMR3UsbCreateProxyDevice(PUVM pUVM, PCRTUUID pUuid, const char *pszBackend, const char *pszAddress, PCFGMNODE pSubTree,
    14621479                                          VUSBSPEED enmSpeed, uint32_t fMaskedIfs, const char *pszCaptureFilename);
    14631480VMMR3DECL(int)  PDMR3UsbDetachDevice(PUVM pUVM, PCRTUUID pUuid);
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