VirtualBox

Changeset 32142 in vbox for trunk/src/VBox/Main/testcase


Ignore:
Timestamp:
Aug 31, 2010 1:00:46 PM (14 years ago)
Author:
vboxsync
Message:

Main/linux/USB: moved a vector container-based implementation detail out of the interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/testcase/tstHostHardwareLinux.cpp

    r31652 r32142  
    123123                  pInfo->mSysfsPath);
    124124        RTPrintf ("    interfaces:\n");
    125         USBInterfaceList_iterator it2;
    126         USBInterfaceList_iter_init(&it2, USBInterfaceList_begin(&pInfo->mInterfaces));
    127         for (; !USBInterfaceList_iter_eq(&it2, USBInterfaceList_end(&pInfo->mInterfaces));
    128                USBInterfaceList_iter_incr(&it2))
     125        char *pszIf;
     126        for (pszIf = USBDevInfoFirstInterface(pInfo->mInterfaces); pszIf;
     127             pszIf = USBDevInfoNextInterface(pInfo->mInterfaces))
    129128        {
    130129            char szDriver[RTPATH_MAX];
    131             char *pszIf = *USBInterfaceList_iter_target(&it2);
    132130            strcpy(szDriver, "none");
    133131            ssize_t size = RTLinuxSysFsGetLinkDest(szDriver, sizeof(szDriver),
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