Changeset 75500 in vbox for trunk/src/VBox/HostServices
- Timestamp:
- Nov 16, 2018 1:24:39 AM (6 years ago)
- Location:
- trunk/src/VBox/HostServices
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/GuestControl/service.cpp
r73511 r75500 974 974 uint32_t u32Function, 975 975 uint32_t cParms, 976 VBOXHGCMSVCPARM paParms[]) 976 VBOXHGCMSVCPARM paParms[], 977 uint64_t tsArrival) 977 978 { 978 979 AssertLogRelReturnVoid(VALID_PTR(pvService)); 979 980 SELF *pSelf = reinterpret_cast<SELF *>(pvService); 980 981 AssertPtrReturnVoid(pSelf); 982 RT_NOREF_PV(tsArrival); 981 983 pSelf->call(callHandle, u32ClientID, pvClient, u32Function, cParms, paParms); 982 984 } -
trunk/src/VBox/HostServices/GuestControl/testcase/tstGuestControlSvc.cpp
r69500 r75500 211 211 aParmsGuest[1].setUInt32(0 /* Parameters */); 212 212 pTable->pfnCall(pTable->pvService, &callHandle, 1 /* Client ID */, NULL /* pvClient */, 213 GUEST_MSG_WAIT, 2, &aParmsGuest[0] );213 GUEST_MSG_WAIT, 2, &aParmsGuest[0], 0); 214 214 RTTEST_CHECK_RC_RET(g_hTest, callHandle.rc, VINF_SUCCESS, callHandle.rc); 215 215 -
trunk/src/VBox/HostServices/GuestProperties/service.cpp
r75498 r75500 353 353 uint32_t u32Function, 354 354 uint32_t cParms, 355 VBOXHGCMSVCPARM paParms[]) 355 VBOXHGCMSVCPARM paParms[], 356 uint64_t tsArrival) 356 357 { 357 358 AssertLogRelReturnVoid(VALID_PTR(pvService)); … … 360 361 pSelf->call(callHandle, u32ClientID, pvClient, u32Function, cParms, paParms); 361 362 LogFlowFunc(("returning\n")); 363 RT_NOREF_PV(tsArrival); 362 364 } 363 365 -
trunk/src/VBox/HostServices/GuestProperties/testcase/tstGuestPropSvc.cpp
r70828 r75500 424 424 else 425 425 pTable->pfnCall(pTable->pvService, &callHandle, 0, NULL, command, 426 useSetProp ? 3 : 2, aParms );426 useSetProp ? 3 : 2, aParms, 0); 427 427 return callHandle.rc; 428 428 } … … 509 509 callHandle.rc = pTable->pfnHostCall(pTable->pvService, command, 1, aParms); 510 510 else 511 pTable->pfnCall(pTable->pvService, &callHandle, 0, NULL, command, 1, aParms );511 pTable->pfnCall(pTable->pvService, &callHandle, 0, NULL, command, 1, aParms, 0); 512 512 return callHandle.rc; 513 513 } … … 703 703 aParms[1].setUInt64(1); 704 704 aParms[2].setPointer(pvBuf, cbBuf); 705 pTable->pfnCall(pTable->pvService, &callHandle, 0, NULL, GUEST_PROP_FN_GET_NOTIFICATION, 4, aParms );705 pTable->pfnCall(pTable->pvService, &callHandle, 0, NULL, GUEST_PROP_FN_GET_NOTIFICATION, 4, aParms, 0); 706 706 707 707 if ( callHandle.rc != VERR_BUFFER_OVERFLOW … … 729 729 aParms[1].setUInt64(u64Timestamp); 730 730 aParms[2].setPointer(pvBuf, cbBuf); 731 pTable->pfnCall(pTable->pvService, &callHandle, 0, NULL, GUEST_PROP_FN_GET_NOTIFICATION, 4, aParms );731 pTable->pfnCall(pTable->pvService, &callHandle, 0, NULL, GUEST_PROP_FN_GET_NOTIFICATION, 4, aParms, 0); 732 732 if ( RT_FAILURE(callHandle.rc) 733 733 || (i == 0 && callHandle.rc != VWRN_NOT_FOUND) … … 770 770 g_AsyncNotification.callHandle.rc = VINF_HGCM_ASYNC_EXECUTE; 771 771 pTable->pfnCall(pTable->pvService, &g_AsyncNotification.callHandle, 0, NULL, 772 GUEST_PROP_FN_GET_NOTIFICATION, 4, g_AsyncNotification.aParms );772 GUEST_PROP_FN_GET_NOTIFICATION, 4, g_AsyncNotification.aParms, 0); 773 773 if (RT_FAILURE(g_AsyncNotification.callHandle.rc)) 774 774 RTTestIFailed("GET_NOTIFICATION call failed, rc=%Rrc.", g_AsyncNotification.callHandle.rc); -
trunk/src/VBox/HostServices/HostChannel/service.cpp
r69500 r75500 206 206 uint32_t u32Function, 207 207 uint32_t cParms, 208 VBOXHGCMSVCPARM paParms[]) 209 { 210 NOREF(pvService); 208 VBOXHGCMSVCPARM paParms[], 209 uint64_t tsArrival) 210 { 211 RT_NOREF(pvService, tsArrival); 211 212 212 213 int rc = VINF_SUCCESS; -
trunk/src/VBox/HostServices/SharedClipboard/service.cpp
r75498 r75500 406 406 uint32_t u32Function, 407 407 uint32_t cParms, 408 VBOXHGCMSVCPARM paParms[]) 409 { 408 VBOXHGCMSVCPARM paParms[], 409 uint64_t tsArrival) 410 { 411 RT_NOREF_PV(tsArrival); 410 412 int rc = VINF_SUCCESS; 411 413 -
trunk/src/VBox/HostServices/SharedClipboard/testcase/tstClipboardServiceHost.cpp
r69658 r75500 118 118 call.rc = VERR_TRY_AGAIN; 119 119 table.pfnCall(NULL, &call, 1 /* clientId */, &g_Client, VBOX_SHARED_CLIPBOARD_FN_GET_HOST_MSG, 120 2, parms );120 2, parms, 0); 121 121 RTTESTI_CHECK_RC(call.rc, VERR_TRY_AGAIN); /* This should get updated only when the guest call completes. */ 122 122 vboxSvcClipboardReportMsg (&g_Client, VBOX_SHARED_CLIPBOARD_HOST_MSG_READ_DATA, … … 127 127 call.rc = VERR_TRY_AGAIN; 128 128 table.pfnCall(NULL, &call, 1 /* clientId */, &g_Client, VBOX_SHARED_CLIPBOARD_FN_GET_HOST_MSG, 129 2, parms );129 2, parms, 0); 130 130 RTTESTI_CHECK_RC(call.rc, VERR_TRY_AGAIN); /* This call should not complete yet. */ 131 131 … … 138 138 call.rc = VERR_TRY_AGAIN; 139 139 table.pfnCall(NULL, &call, 1 /* clientId */, &g_Client, VBOX_SHARED_CLIPBOARD_FN_GET_HOST_MSG, 140 2, parms );140 2, parms, 0); 141 141 RTTESTI_CHECK(parms[0].u.uint32 == VBOX_SHARED_CLIPBOARD_HOST_MSG_READ_DATA); 142 142 RTTESTI_CHECK(parms[1].u.uint32 == VBOX_SHARED_CLIPBOARD_FMT_HTML); … … 144 144 call.rc = VERR_TRY_AGAIN; 145 145 table.pfnCall(NULL, &call, 1 /* clientId */, &g_Client, VBOX_SHARED_CLIPBOARD_FN_GET_HOST_MSG, 146 2, parms );146 2, parms, 0); 147 147 RTTESTI_CHECK_RC(call.rc, VERR_TRY_AGAIN); /* This call should not complete yet. */ 148 148 … … 153 153 call.rc = VERR_TRY_AGAIN; 154 154 table.pfnCall(NULL, &call, 1 /* clientId */, &g_Client, VBOX_SHARED_CLIPBOARD_FN_GET_HOST_MSG, 155 2, parms );155 2, parms, 0); 156 156 RTTESTI_CHECK_RC(call.rc, VERR_TRY_AGAIN); /* This should get updated only when the guest call completes. */ 157 157 vboxSvcClipboardReportMsg (&g_Client, VBOX_SHARED_CLIPBOARD_HOST_MSG_READ_DATA, … … 162 162 call.rc = VERR_TRY_AGAIN; 163 163 table.pfnCall(NULL, &call, 1 /* clientId */, &g_Client, VBOX_SHARED_CLIPBOARD_FN_GET_HOST_MSG, 164 2, parms );164 2, parms, 0); 165 165 RTTESTI_CHECK(parms[0].u.uint32 == VBOX_SHARED_CLIPBOARD_HOST_MSG_READ_DATA); 166 166 RTTESTI_CHECK(parms[1].u.uint32 == VBOX_SHARED_CLIPBOARD_FMT_HTML); … … 168 168 call.rc = VERR_TRY_AGAIN; 169 169 table.pfnCall(NULL, &call, 1 /* clientId */, &g_Client, VBOX_SHARED_CLIPBOARD_FN_GET_HOST_MSG, 170 2, parms );170 2, parms, 0); 171 171 RTTESTI_CHECK_RC(call.rc, VERR_TRY_AGAIN); /* This call should not complete yet. */ 172 172 … … 179 179 call.rc = VERR_TRY_AGAIN; 180 180 table.pfnCall(NULL, &call, 1 /* clientId */, &g_Client, VBOX_SHARED_CLIPBOARD_FN_GET_HOST_MSG, 181 2, parms );181 2, parms, 0); 182 182 RTTESTI_CHECK(parms[0].u.uint32 == VBOX_SHARED_CLIPBOARD_HOST_MSG_READ_DATA); 183 183 RTTESTI_CHECK(parms[1].u.uint32 == VBOX_SHARED_CLIPBOARD_FMT_UNICODETEXT); … … 185 185 call.rc = VERR_TRY_AGAIN; 186 186 table.pfnCall(NULL, &call, 1 /* clientId */, &g_Client, VBOX_SHARED_CLIPBOARD_FN_GET_HOST_MSG, 187 2, parms );187 2, parms, 0); 188 188 RTTESTI_CHECK(parms[0].u.uint32 == VBOX_SHARED_CLIPBOARD_HOST_MSG_READ_DATA); 189 189 RTTESTI_CHECK(parms[1].u.uint32 == VBOX_SHARED_CLIPBOARD_FMT_HTML); … … 191 191 call.rc = VERR_TRY_AGAIN; 192 192 table.pfnCall(NULL, &call, 1 /* clientId */, &g_Client, VBOX_SHARED_CLIPBOARD_FN_GET_HOST_MSG, 193 2, parms );193 2, parms, 0); 194 194 RTTESTI_CHECK_RC(call.rc, VERR_TRY_AGAIN); /* This call should not complete yet. */ 195 195 table.pfnUnload(NULL); -
trunk/src/VBox/HostServices/SharedFolders/service.cpp
r75498 r75500 98 98 static STAMPROFILE g_StatCancelMappingsChangesWait; 99 99 static STAMPROFILE g_StatUnknown; 100 static STAMPROFILE g_StatMsgStage1; 100 101 /** @} */ 101 102 … … 398 399 } 399 400 400 static DECLCALLBACK(void) svcCall (void *, VBOXHGCMCALLHANDLE callHandle, uint32_t u32ClientID, 401 void *pvClient, uint32_t u32Function, uint32_t cParms, VBOXHGCMSVCPARM paParms[])401 static DECLCALLBACK(void) svcCall (void *, VBOXHGCMCALLHANDLE callHandle, uint32_t u32ClientID, void *pvClient, 402 uint32_t u32Function, uint32_t cParms, VBOXHGCMSVCPARM paParms[], uint64_t tsArrival) 402 403 { 403 RT_NOREF 1(u32ClientID);404 RT_NOREF(u32ClientID, tsArrival); 404 405 #ifndef VBOX_WITHOUT_RELEASE_STATISTICS 405 406 uint64_t tsStart; 406 407 STAM_GET_TS(tsStart); 408 STAM_REL_PROFILE_ADD_PERIOD(&g_StatMsgStage1, tsStart - tsArrival); 407 409 #endif 408 410 Log(("SharedFolders host service: svcCall: u32ClientID = %u, fn = %u, cParms = %u, pparms = %p\n", u32ClientID, u32Function, cParms, paParms)); … … 1804 1806 HGCMSvcHlpStamRegister(g_pHelpers, &g_StatCancelMappingsChangesWait, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_CALLS, "SHFL_FN_CANCEL_MAPPINGS_CHANGES_WAITS", "/HGCM/VBoxSharedFolders/FnCancelMappingsChangesWaits"); 1805 1807 HGCMSvcHlpStamRegister(g_pHelpers, &g_StatUnknown, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_CALLS, "SHFL_FN_???", "/HGCM/VBoxSharedFolders/FnUnknown"); 1808 HGCMSvcHlpStamRegister(g_pHelpers, &g_StatMsgStage1, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_CALLS, "Time from VMMDev arrival to worker thread.","/HGCM/VBoxSharedFolders/MsgStage1"); 1806 1809 } 1807 1810 } -
trunk/src/VBox/HostServices/SharedFolders/testcase/tstSharedFolderService.cpp
r75380 r75500 645 645 psvcTable->pfnCall(psvcTable->pvService, &callHandle, 0, 646 646 psvcTable->pvService, SHFL_FN_MAP_FOLDER, 647 SHFL_CPARMS_MAP_FOLDER, aParms );647 SHFL_CPARMS_MAP_FOLDER, aParms, 0); 648 648 AssertReleaseRC(callHandle.rc); 649 649 return aParms[1].u.uint32; … … 665 665 psvcTable->pfnCall(psvcTable->pvService, &callHandle, 0, 666 666 psvcTable->pvService, SHFL_FN_UNMAP_FOLDER, 667 SHFL_CPARMS_UNMAP_FOLDER, aParms );667 SHFL_CPARMS_UNMAP_FOLDER, aParms, 0); 668 668 AssertReleaseRC(callHandle.rc); 669 669 fillTestShflString(&FolderName, pcszFolderName); … … 693 693 psvcTable->pfnCall(psvcTable->pvService, &callHandle, 0, 694 694 psvcTable->pvService, SHFL_FN_CREATE, 695 RT_ELEMENTS(aParms), aParms );695 RT_ELEMENTS(aParms), aParms, 0); 696 696 if (RT_FAILURE(callHandle.rc)) 697 697 return callHandle.rc; … … 717 717 psvcTable->pfnCall(psvcTable->pvService, &callHandle, 0, 718 718 psvcTable->pvService, SHFL_FN_READ, 719 RT_ELEMENTS(aParms), aParms );719 RT_ELEMENTS(aParms), aParms, 0); 720 720 if (pcbRead) 721 721 *pcbRead = aParms[3].u.uint32; … … 737 737 psvcTable->pfnCall(psvcTable->pvService, &callHandle, 0, 738 738 psvcTable->pvService, SHFL_FN_WRITE, 739 RT_ELEMENTS(aParms), aParms );739 RT_ELEMENTS(aParms), aParms, 0); 740 740 if (pcbWritten) 741 741 *pcbWritten = aParms[3].u.uint32; … … 753 753 psvcTable->pfnCall(psvcTable->pvService, &callHandle, 0, 754 754 psvcTable->pvService, SHFL_FN_FLUSH, 755 SHFL_CPARMS_FLUSH, aParms );755 SHFL_CPARMS_FLUSH, aParms, 0); 756 756 return callHandle.rc; 757 757 } … … 783 783 psvcTable->pfnCall(psvcTable->pvService, &callHandle, 0, 784 784 psvcTable->pvService, SHFL_FN_LIST, 785 RT_ELEMENTS(aParms), aParms );785 RT_ELEMENTS(aParms), aParms, 0); 786 786 if (pcFiles) 787 787 *pcFiles = aParms[7].u.uint32; … … 803 803 psvcTable->pfnCall(psvcTable->pvService, &callHandle, 0, 804 804 psvcTable->pvService, SHFL_FN_INFORMATION, 805 RT_ELEMENTS(aParms), aParms );805 RT_ELEMENTS(aParms), aParms, 0); 806 806 return callHandle.rc; 807 807 } … … 821 821 psvcTable->pfnCall(psvcTable->pvService, &callHandle, 0, 822 822 psvcTable->pvService, SHFL_FN_LOCK, 823 RT_ELEMENTS(aParms), aParms );823 RT_ELEMENTS(aParms), aParms, 0); 824 824 return callHandle.rc; 825 825 } -
trunk/src/VBox/HostServices/SharedOpenGL/crserver/crservice.cpp
r69500 r75500 414 414 } 415 415 416 static DECLCALLBACK(void) svcCall (void *, VBOXHGCMCALLHANDLE callHandle, uint32_t u32ClientID, void *pvClient, uint32_t u32Function, uint32_t cParms, VBOXHGCMSVCPARM paParms[]) 416 static DECLCALLBACK(void) svcCall (void *, VBOXHGCMCALLHANDLE callHandle, uint32_t u32ClientID, void *pvClient, 417 uint32_t u32Function, uint32_t cParms, VBOXHGCMSVCPARM paParms[], uint64_t tsArrival) 417 418 { 419 RT_NOREF(pvClient, tsArrival); 418 420 int rc = VINF_SUCCESS; 419 420 NOREF(pvClient);421 421 422 422 if (g_u32fCrHgcmDisabled)
Note:
See TracChangeset
for help on using the changeset viewer.