Changeset 4404 in vbox
- Timestamp:
- Aug 28, 2007 3:58:08 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 23972
- Location:
- trunk/src/VBox/Main
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r4386 r4404 788 788 789 789 #ifdef VRDP_NO_COM 790 void Console::VRDPInterceptUSB (uint32_t u32ClientId )790 void Console::VRDPInterceptUSB (uint32_t u32ClientId, void **ppvIntercept) 791 791 #else 792 792 DECLCALLBACK(void) Console::vrdp_InterceptUSB (void *pvUser, … … 811 811 812 812 #ifdef VRDP_NO_COM 813 mConsoleVRDPServer->USBBackendCreate (u32ClientId );813 mConsoleVRDPServer->USBBackendCreate (u32ClientId, ppvIntercept); 814 814 #else 815 815 console->mConsoleVRDPServer->USBBackendCreate (u32ClientId, ppfn, ppv); -
trunk/src/VBox/Main/ConsoleVRDPServer.cpp
r4363 r4404 708 708 { 709 709 ConsoleVRDPServer *server = static_cast <ConsoleVRDPServer *> (pvCallback); 710 711 LogFlowFunc(("%x\n", fu32Intercept)); 710 712 711 713 int rc = VERR_NOT_SUPPORTED; … … 716 718 { 717 719 server->mConsole->VRDPInterceptAudio (u32ClientId); 720 if (ppvIntercept) 721 { 722 *ppvIntercept = server; 723 } 718 724 rc = VINF_SUCCESS; 719 725 } break; … … 721 727 case VRDP_CLIENT_INTERCEPT_USB: 722 728 { 723 server->mConsole->VRDPInterceptUSB (u32ClientId );729 server->mConsole->VRDPInterceptUSB (u32ClientId, ppvIntercept); 724 730 rc = VINF_SUCCESS; 725 731 } break; … … 728 734 { 729 735 server->mConsole->VRDPInterceptClipboard (u32ClientId); 736 if (ppvIntercept) 737 { 738 *ppvIntercept = server; 739 } 730 740 rc = VINF_SUCCESS; 731 741 } break; … … 733 743 default: 734 744 break; 735 }736 737 if (VBOX_SUCCESS (rc))738 {739 if (ppvIntercept)740 {741 *ppvIntercept = server;742 }743 745 } 744 746 … … 1564 1566 */ 1565 1567 #ifdef VRDP_NO_COM 1566 void ConsoleVRDPServer::USBBackendCreate (uint32_t u32ClientId )1568 void ConsoleVRDPServer::USBBackendCreate (uint32_t u32ClientId, void **ppvIntercept) 1567 1569 #else 1568 1570 void ConsoleVRDPServer::USBBackendCreate (uint32_t u32ClientId, PFNVRDPUSBCALLBACK *ppfn, void **ppv) … … 1599 1601 1600 1602 #ifdef VRDP_NO_COM 1603 if (ppvIntercept) 1604 { 1605 *ppvIntercept = pRemoteUSBBackend; 1606 } 1601 1607 #else 1602 1608 pRemoteUSBBackend->QueryVRDPCallbackPointer (ppfn, ppv); -
trunk/src/VBox/Main/include/ConsoleImpl.h
r4131 r4404 184 184 void VRDPClientDisconnect (uint32_t u32ClientId, uint32_t fu32Intercepted); 185 185 void VRDPInterceptAudio (uint32_t u32ClientId); 186 void VRDPInterceptUSB (uint32_t u32ClientId );186 void VRDPInterceptUSB (uint32_t u32ClientId, void **ppvIntercept); 187 187 void VRDPInterceptClipboard (uint32_t u32ClientId); 188 188 #else -
trunk/src/VBox/Main/include/ConsoleVRDPServer.h
r4071 r4404 62 62 63 63 #ifdef VRDP_NO_COM 64 void USBBackendCreate (uint32_t u32ClientId );64 void USBBackendCreate (uint32_t u32ClientId, void **ppvIntercept); 65 65 #else 66 66 void USBBackendCreate (uint32_t u32ClientId, PFNVRDPUSBCALLBACK *ppfn, void **ppv);
Note:
See TracChangeset
for help on using the changeset viewer.