VirtualBox

Changeset 53062 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Oct 15, 2014 12:34:18 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
96564
Message:

USB: Integrate USB sniffer. Make it possible to specify a file to dump the traffic to when attaching a USB device with VBoxManage

Location:
trunk/include/VBox/vmm
Files:
2 edited

Legend:

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

    r46788 r53062  
    508508     *
    509509     * @returns VBox status code.
    510      * @param   pDrvIns     The hub instance.
    511      * @param   pUsbIns     The device to attach.
    512      * @param   piPort      Where to store the port number the device was attached to.
     510     * @param   pDrvIns            The hub instance.
     511     * @param   pUsbIns            The device to attach.
     512     * @param   pszCaptureFilename Path to the file for USB traffic capturing, optional.
     513     * @param   piPort             Where to store the port number the device was attached to.
    513514     * @thread EMT.
    514515     */
    515     DECLR3CALLBACKMEMBER(int, pfnAttachDevice,(PPDMDRVINS pDrvIns, PPDMUSBINS pUsbIns, uint32_t *piPort));
     516    DECLR3CALLBACKMEMBER(int, pfnAttachDevice,(PPDMDRVINS pDrvIns, PPDMUSBINS pUsbIns, const char *pszCaptureFilename, uint32_t *piPort));
    516517
    517518    /**
     
    537538
    538539/** Current PDMUSBHUBREG version number. */
    539 #define PDM_USBHUBREG_VERSION                   PDM_VERSION_MAKE(0xf0fd, 1, 0)
     540#define PDM_USBHUBREG_VERSION                   PDM_VERSION_MAKE(0xf0fd, 2, 0)
    540541
    541542
  • trunk/include/VBox/vmm/pdmusb.h

    r51290 r53062  
    10581058typedef DECLCALLBACK(int) FNPDMVBOXUSBREGISTER(PCPDMUSBREGCB pCallbacks, uint32_t u32Version);
    10591059
    1060 VMMR3DECL(int)  PDMR3UsbCreateEmulatedDevice(PUVM pUVM, const char *pszDeviceName, PCFGMNODE pDeviceNode, PCRTUUID pUuid);
     1060VMMR3DECL(int)  PDMR3UsbCreateEmulatedDevice(PUVM pUVM, const char *pszDeviceName, PCFGMNODE pDeviceNode, PCRTUUID pUuid,
     1061                                             const char *pszCaptureFilename);
    10611062VMMR3DECL(int)  PDMR3UsbCreateProxyDevice(PUVM pUVM, PCRTUUID pUuid, bool fRemote, const char *pszAddress, void *pvBackend,
    1062                                           uint32_t iUsbVersion, uint32_t fMaskedIfs);
     1063                                          uint32_t iUsbVersion, uint32_t fMaskedIfs, const char *pszCaptureFilename);
    10631064VMMR3DECL(int)  PDMR3UsbDetachDevice(PUVM pUVM, PCRTUUID pUuid);
    10641065VMMR3DECL(bool) PDMR3UsbHasHub(PUVM pUVM);
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