VirtualBox

Changeset 48947 in vbox for trunk/src/VBox/Devices/USB


Ignore:
Timestamp:
Oct 7, 2013 9:41:00 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
89644
Message:

Devices: Whitespace and svn:keyword cleanups by scm.

Location:
trunk/src/VBox/Devices/USB
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/DevOHCI.cpp

    r45671 r48947  
    35963596            unsigned k = 0;
    35973597            if (  !(Ed.hwinfo & ED_HWINFO_SKIP)
    3598                 && (TdAddr != TailP)) 
     3598                && (TdAddr != TailP))
    35993599            {
    36003600                do
  • trunk/src/VBox/Devices/USB/VUSBDevice.cpp

    r46806 r48947  
    11041104                                 pUrb->pszDesc, pUrb->enmState, pDev, pDev->pUsbIns->pszName));
    11051105                vusbUrbUnlink(pUrb);
    1106                 /* Unlink isn't enough, because boundary timer and detaching will try to reap it. 
    1107                  * It was tested with MSD & iphone attachment to vSMP guest, if 
     1106                /* Unlink isn't enough, because boundary timer and detaching will try to reap it.
     1107                 * It was tested with MSD & iphone attachment to vSMP guest, if
    11081108                 * it breaks anything, please add comment here, why we should unlink only.
    11091109                 */
  • trunk/src/VBox/Devices/USB/darwin/USBProxyDevice-darwin.cpp

    r46046 r48947  
    218218     * (i.e. the default control pipe stuff). */
    219219    CFRunLoopSourceRef      RunLoopSrcRef;
    220     /** we want to add and remove RunLoopSourceRefs to run loop's of 
     220    /** we want to add and remove RunLoopSourceRefs to run loop's of
    221221     * every EMT thread participated in USB processing. */
    222222    RTLISTANCHOR        HeadOfRunLoopLst;
     
    284284 * Adds Source ref to current run loop and adds it the list of runloops.
    285285 */
    286 static int usbProxyDarwinAddRunLoopRef(PRTLISTANCHOR pListHead, 
     286static int usbProxyDarwinAddRunLoopRef(PRTLISTANCHOR pListHead,
    287287                                       CFRunLoopSourceRef SourceRef)
    288288{
     
    308308
    309309    RTListAppend((PRTLISTNODE)pListHead, &pListNode->List);
    310      
     310
    311311    return VINF_SUCCESS;
    312312}
     
    315315/*
    316316 * Removes all source reference from mode of run loop's we've registered them.
    317  * 
    318  */
    319 static int usbProxyDarwinRemoveSourceRefFromAllRunLoops(PRTLISTANCHOR pHead, 
     317 *
     318 */
     319static int usbProxyDarwinRemoveSourceRefFromAllRunLoops(PRTLISTANCHOR pHead,
    320320                                                        CFRunLoopSourceRef SourceRef)
    321321{
    322322    AssertPtrReturn(pHead, VERR_INVALID_PARAMETER);
    323    
    324     while (!RTListIsEmpty(pHead)) 
     323
     324    while (!RTListIsEmpty(pHead))
    325325    {
    326326        PRUNLOOPREFLIST pNode = RTListGetFirst(pHead, RUNLOOPREFLIST, List);
    327327        /* XXX: Should Release Reference? */
    328328        Assert(CFGetRetainCount(pNode->RunLoopRef));
    329        
     329
    330330        CFRunLoopRemoveSource(pNode->RunLoopRef, SourceRef, g_pRunLoopMode);
    331331        CFRelease(SourceRef);
     
    335335
    336336        RTMemFree(pNode);
    337     } 
     337    }
    338338
    339339    return VINF_SUCCESS;
     
    896896                                    {
    897897                                        RTListInit((PRTLISTNODE)&pIf->HeadOfRunLoopLst);
    898                                         usbProxyDarwinAddRunLoopRef(&pIf->HeadOfRunLoopLst, 
     898                                        usbProxyDarwinAddRunLoopRef(&pIf->HeadOfRunLoopLst,
    899899                                                                    pIf->RunLoopSrcRef);
    900900
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