Changeset 75798 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Nov 28, 2018 11:47:11 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 127001
- Location:
- trunk/src/VBox/Additions/common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibGuestCtrl.cpp
r75758 r75798 366 366 367 367 368 /**369 * Disables a previously set message filter.370 *371 * @return IPRT status code.372 * @param uClientId The client ID returned by VbglR3GuestCtrlConnect().373 */374 VBGLR3DECL(int) VbglR3GuestCtrlMsgFilterUnset(uint32_t uClientId)375 {376 /* Tell the host we want to unset the filter. */377 HGCMMsgCmdFilterUnset Msg;378 VBGL_HGCM_HDR_INIT(&Msg.hdr, uClientId, GUEST_MSG_FILTER_UNSET, 1);379 VbglHGCMParmUInt32Set(&Msg.flags, 0 /* Flags, unused */);380 381 return VbglR3HGCMCall(&Msg.hdr, sizeof(Msg));382 }383 384 385 368 VBGLR3DECL(int) VbglR3GuestCtrlMsgReply(PVBGLR3GUESTCTRLCMDCTX pCtx, 386 369 int rc) … … 416 399 * @param uClientId The client ID returned by VbglR3GuestCtrlConnect(). 417 400 */ 418 VBGLR3DECL(int) VbglR3GuestCtrlMsgSkip (uint32_t uClientId)401 VBGLR3DECL(int) VbglR3GuestCtrlMsgSkipOld(uint32_t uClientId) 419 402 { 420 403 HGCMMsgCmdSkip Msg; 421 404 422 405 /* Tell the host we want to skip the current assigned command. */ 423 VBGL_HGCM_HDR_INIT(&Msg.hdr, uClientId, GUEST_MSG_SKIP , 1);406 VBGL_HGCM_HDR_INIT(&Msg.hdr, uClientId, GUEST_MSG_SKIP_OLD, 1); 424 407 VbglHGCMParmUInt32Set(&Msg.flags, 0 /* Flags, unused */); 425 408 return VbglR3HGCMCall(&Msg.hdr, sizeof(Msg)); … … 436 419 { 437 420 HGCMMsgCancelPendingWaits Msg; 438 VBGL_HGCM_HDR_INIT(&Msg.hdr, uClientId, GUEST_ CANCEL_PENDING_WAITS, 0);421 VBGL_HGCM_HDR_INIT(&Msg.hdr, uClientId, GUEST_MSG_CANCEL, 0); 439 422 return VbglR3HGCMCall(&Msg.hdr, sizeof(Msg)); 440 423 } -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControl.cpp
r75758 r75798 361 361 * skip all not wanted messages here. 362 362 */ 363 rc = VbglR3GuestCtrlMsgSkip (g_uControlSvcClientID);363 rc = VbglR3GuestCtrlMsgSkipOld(g_uControlSvcClientID); 364 364 VGSvcVerbose(3, "Skipping uMsg=%RU32, cParms=%RU32, rc=%Rrc\n", uMsg, cParms, rc); 365 365 } -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp
r75758 r75798 1067 1067 VGSvcVerbose(3, "Unsupported message (uMsg=%RU32, cParms=%RU32) from host, skipping\n", uMsg, pHostCtx->uNumParms); 1068 1068 1069 /** @todo r=bird: Why on earth couldn't you make GUEST_MSG_SKIP do this hacky stuff?!?1070 * You don't even know if you're replying to a message ment for you (see masking race further down). */1071 1072 1069 /* 1073 1070 * !!! HACK ALERT BEGIN !!! … … 1103 1100 1104 1101 /* Tell the host service to skip the message. */ 1105 VbglR3GuestCtrlMsgSkip (pHostCtx->uClientID);1102 VbglR3GuestCtrlMsgSkipOld(pHostCtx->uClientID); 1106 1103 1107 1104 rc = VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.