VirtualBox

Ignore:
Timestamp:
Apr 18, 2016 5:33:15 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
106677
Message:

ValdiationKit/usb: Return bus and device ID for the created gadget to make it usable for device filters

Location:
trunk/src/VBox/ValidationKit/utils/usb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/usb/UsbTestService.cpp

    r60522 r60548  
    703703
    704704        Rep.idGadget = 0;
     705        Rep.u32BusId = utsGadgetGetBusId(pClient->hGadget);
     706        Rep.u32DevId = utsGadgetGetDevId(pClient->hGadget);
    705707        rc = utsReplyInternal(pClient, &Rep.Sts, "ACK     ", sizeof(Rep) - sizeof(UTSPKTSTS));
    706708    }
  • trunk/src/VBox/ValidationKit/utils/usb/UsbTestServiceProtocol.h

    r60488 r60548  
    221221    /** The gadget ID on success. */
    222222    uint32_t        idGadget;
    223     /** Padding - reserved. */
    224     uint8_t         au8Padding[12];
     223    /** Bus ID the gadget is attached to */
     224    uint32_t        u32BusId;
     225    /** Device ID of the gadget on the bus. */
     226    uint32_t        u32DevId;
     227    /** Padding - reserved. */
     228    uint8_t         au8Padding[4];
    225229} UTSPKTREPGDGTCTOR;
    226230AssertCompileSizeAlignment(UTSPKTREPGDGTCTOR, UTSPKT_ALIGNMENT);
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