Changeset 85749 in vbox for trunk/src/VBox/HostServices/DragAndDrop
- Timestamp:
- Aug 13, 2020 11:18:00 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/DragAndDrop/VBoxDragAndDropSvc.cpp
r85745 r85749 103 103 int clientConnect(uint32_t idClient, void *pvClient) RT_NOEXCEPT RT_OVERRIDE; 104 104 int clientDisconnect(uint32_t idClient, void *pvClient) RT_NOEXCEPT RT_OVERRIDE; 105 int clientQueryFeatures( DragAndDropClient *pClient, VBOXHGCMCALLHANDLE hCall,uint32_t cParms, VBOXHGCMSVCPARM paParms[]) RT_NOEXCEPT;106 int clientReportFeatures(DragAndDropClient *pClient, VBOXHGCMCALLHANDLE hCall,uint32_t cParms, VBOXHGCMSVCPARM paParms[]) RT_NOEXCEPT;105 int clientQueryFeatures(uint32_t cParms, VBOXHGCMSVCPARM paParms[]) RT_NOEXCEPT; 106 int clientReportFeatures(DragAndDropClient *pClient, uint32_t cParms, VBOXHGCMSVCPARM paParms[]) RT_NOEXCEPT; 107 107 void guestCall(VBOXHGCMCALLHANDLE callHandle, uint32_t idClient, void *pvClient, uint32_t u32Function, 108 108 uint32_t cParms, VBOXHGCMSVCPARM paParms[]) RT_NOEXCEPT RT_OVERRIDE; … … 307 307 * 308 308 * @param pClient The client state. 309 * @param hCall The client's call handle.310 309 * @param cParms Number of parameters. 311 310 * @param paParms Array of parameters. 312 311 */ 313 int DragAndDropService::clientReportFeatures(DragAndDropClient *pClient, 314 VBOXHGCMCALLHANDLE hCall, uint32_t cParms, VBOXHGCMSVCPARM paParms[]) RT_NOEXCEPT 315 { 312 int DragAndDropService::clientReportFeatures(DragAndDropClient *pClient, uint32_t cParms, VBOXHGCMSVCPARM paParms[]) RT_NOEXCEPT 313 { 314 RT_NOREF(pClient); 315 316 316 /* 317 317 * Validate the request. … … 325 325 326 326 /* 327 * Do the work.327 * Report back the host features. 328 328 */ 329 329 paParms[0].u.uint64 = m_fHostFeatures0; 330 330 paParms[1].u.uint64 = 0; 331 331 332 int rc = pClient->Complete(hCall, VINF_SUCCESS); 333 if (RT_SUCCESS(rc)) 334 { 335 pClient->fGuestFeatures0 = fFeatures0; 336 pClient->fGuestFeatures1 = fFeatures1; 337 Log(("[Client %RU32] features: %#RX64 %#RX64\n", pClient->GetClientID(), fFeatures0, fFeatures1)); 338 } 339 else 340 LogFunc(("pfnCallComplete -> %Rrc\n", rc)); 341 342 return VINF_HGCM_ASYNC_EXECUTE; 332 pClient->fGuestFeatures0 = fFeatures0; 333 pClient->fGuestFeatures1 = fFeatures1; 334 335 Log(("[Client %RU32] features: %#RX64 %#RX64\n", pClient->GetClientID(), fFeatures0, fFeatures1)); 336 337 return VINF_SUCCESS; 343 338 } 344 339 … … 350 345 * @retval VERR_WRONG_PARAMETER_COUNT 351 346 * 352 * @param pClient The client state.353 * @param hCall The client's call handle.354 347 * @param cParms Number of parameters. 355 348 * @param paParms Array of parameters. 356 349 */ 357 int DragAndDropService::clientQueryFeatures(DragAndDropClient *pClient, 358 VBOXHGCMCALLHANDLE hCall, uint32_t cParms, VBOXHGCMSVCPARM paParms[]) RT_NOEXCEPT 350 int DragAndDropService::clientQueryFeatures(uint32_t cParms, VBOXHGCMSVCPARM paParms[]) RT_NOEXCEPT 359 351 { 360 352 /* … … 367 359 368 360 /* 369 * Do the work.361 * Report back the host features. 370 362 */ 371 363 paParms[0].u.uint64 = m_fHostFeatures0; 372 364 paParms[1].u.uint64 = 0; 373 365 374 int rc = pClient->Complete(hCall, VINF_SUCCESS); 375 if (RT_FAILURE(rc)) 376 LogFunc(("pfnCallComplete -> %Rrc\n", rc)); 377 378 return VINF_HGCM_ASYNC_EXECUTE; 366 return VINF_SUCCESS; 379 367 } 380 368 … … 638 626 { 639 627 LogFlowFunc(("GUEST_DND_FN_REPORT_FEATURES\n")); 640 rc = clientReportFeatures(pClient, c allHandle, cParms, paParms);628 rc = clientReportFeatures(pClient, cParms, paParms); 641 629 if (RT_SUCCESS(rc)) 642 630 { … … 657 645 { 658 646 LogFlowFunc(("GUEST_DND_FN_QUERY_FEATURES")); 659 rc = clientQueryFeatures( pClient, callHandle,cParms, paParms);647 rc = clientQueryFeatures(cParms, paParms); 660 648 break; 661 649 } … … 1053 1041 } 1054 1042 else if (pClient) 1043 { 1044 /* Complete the call on the guest side. */ 1055 1045 pClient->Complete(callHandle, rc); 1046 } 1056 1047 else 1057 1048 {
Note:
See TracChangeset
for help on using the changeset viewer.