VirtualBox

Changeset 4404 in vbox


Ignore:
Timestamp:
Aug 28, 2007 3:58:08 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
23972
Message:

Fixed the initialization of the remote USB channel.

Location:
trunk/src/VBox/Main
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r4386 r4404  
    788788
    789789#ifdef VRDP_NO_COM
    790 void Console::VRDPInterceptUSB (uint32_t u32ClientId)
     790void Console::VRDPInterceptUSB (uint32_t u32ClientId, void **ppvIntercept)
    791791#else
    792792DECLCALLBACK(void) Console::vrdp_InterceptUSB (void *pvUser,
     
    811811
    812812#ifdef VRDP_NO_COM
    813     mConsoleVRDPServer->USBBackendCreate (u32ClientId);
     813    mConsoleVRDPServer->USBBackendCreate (u32ClientId, ppvIntercept);
    814814#else
    815815    console->mConsoleVRDPServer->USBBackendCreate (u32ClientId, ppfn, ppv);
  • trunk/src/VBox/Main/ConsoleVRDPServer.cpp

    r4363 r4404  
    708708{
    709709    ConsoleVRDPServer *server = static_cast <ConsoleVRDPServer *> (pvCallback);
     710   
     711    LogFlowFunc(("%x\n", fu32Intercept));
    710712
    711713    int rc = VERR_NOT_SUPPORTED;
     
    716718        {
    717719            server->mConsole->VRDPInterceptAudio (u32ClientId);
     720            if (ppvIntercept)
     721            {
     722                *ppvIntercept = server;
     723            }
    718724            rc = VINF_SUCCESS;
    719725        } break;
     
    721727        case VRDP_CLIENT_INTERCEPT_USB:
    722728        {
    723             server->mConsole->VRDPInterceptUSB (u32ClientId);
     729            server->mConsole->VRDPInterceptUSB (u32ClientId, ppvIntercept);
    724730            rc = VINF_SUCCESS;
    725731        } break;
     
    728734        {
    729735            server->mConsole->VRDPInterceptClipboard (u32ClientId);
     736            if (ppvIntercept)
     737            {
     738                *ppvIntercept = server;
     739            }
    730740            rc = VINF_SUCCESS;
    731741        } break;
     
    733743        default:
    734744            break;
    735     }
    736 
    737     if (VBOX_SUCCESS (rc))
    738     {
    739         if (ppvIntercept)
    740         {
    741             *ppvIntercept = server;
    742         }
    743745    }
    744746
     
    15641566 */
    15651567#ifdef VRDP_NO_COM
    1566 void ConsoleVRDPServer::USBBackendCreate (uint32_t u32ClientId)
     1568void ConsoleVRDPServer::USBBackendCreate (uint32_t u32ClientId, void **ppvIntercept)
    15671569#else
    15681570void ConsoleVRDPServer::USBBackendCreate (uint32_t u32ClientId, PFNVRDPUSBCALLBACK *ppfn, void **ppv)
     
    15991601           
    16001602#ifdef VRDP_NO_COM
     1603            if (ppvIntercept)
     1604            {
     1605                *ppvIntercept = pRemoteUSBBackend;
     1606            }
    16011607#else
    16021608            pRemoteUSBBackend->QueryVRDPCallbackPointer (ppfn, ppv);
  • trunk/src/VBox/Main/include/ConsoleImpl.h

    r4131 r4404  
    184184    void VRDPClientDisconnect (uint32_t u32ClientId, uint32_t fu32Intercepted);
    185185    void VRDPInterceptAudio (uint32_t u32ClientId);
    186     void VRDPInterceptUSB (uint32_t u32ClientId);
     186    void VRDPInterceptUSB (uint32_t u32ClientId, void **ppvIntercept);
    187187    void VRDPInterceptClipboard (uint32_t u32ClientId);
    188188#else
  • trunk/src/VBox/Main/include/ConsoleVRDPServer.h

    r4071 r4404  
    6262
    6363#ifdef VRDP_NO_COM
    64     void USBBackendCreate (uint32_t u32ClientId);
     64    void USBBackendCreate (uint32_t u32ClientId, void **ppvIntercept);
    6565#else
    6666    void USBBackendCreate (uint32_t u32ClientId, PFNVRDPUSBCALLBACK *ppfn, void **ppv);
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