VirtualBox

Ignore:
Timestamp:
Apr 18, 2016 5:33:15 PM (9 years ago)
Author:
vboxsync
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/usb/usbgadget2.py

    r60522 r60548  
    12951295        self.sImpersonation = g_ksGadgetImpersonationInvalid;
    12961296        self.idGadget       = None;
     1297        self.iBusId         = None;
     1298        self.iDevId         = None;
    12971299        self.iUsbIpPort     = None;
    12981300
     
    13061308            fRc = self.oUtsSession.syncGadgetDestroy(self.idGadget);
    13071309            self.idGadget = None;
     1310            self.iBusId   = None;
     1311            self.iDevId   = None;
    13081312
    13091313        return fRc;
     
    13401344                fRc = True;
    13411345                self.idGadget = getU32(abPayload, 16);
     1346                self.iBusId   = getU32(abPayload, 20);
     1347                self.iDevId   = getU32(abPayload, 24);
    13421348        else:
    13431349            reporter.log('Invalid or unsupported impersonation');
     
    13511357        """
    13521358        return self.iUsbIpPort;
     1359
     1360    def getGadgetBusAndDevId(self):
     1361        """
     1362        Returns the bus ad device ID of the gadget as a tuple.
     1363        """
     1364        return (self.iBusId, self.iDevId);
    13531365
    13541366    def connectTo(self, cMsTimeout, sHostname, uPort = None, fUsbIpSupport = True, cMsIdleFudge = 0):
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