VirtualBox

Ignore:
Timestamp:
Nov 28, 2018 11:47:11 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
127001
Message:

VBoxGuestControl: Optimizing message handling - part 1. bugref:9313

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibGuestCtrl.cpp

    r75758 r75798  
    366366
    367367
    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 
    385368VBGLR3DECL(int) VbglR3GuestCtrlMsgReply(PVBGLR3GUESTCTRLCMDCTX pCtx,
    386369                                        int rc)
     
    416399 * @param   uClientId       The client ID returned by VbglR3GuestCtrlConnect().
    417400 */
    418 VBGLR3DECL(int) VbglR3GuestCtrlMsgSkip(uint32_t uClientId)
     401VBGLR3DECL(int) VbglR3GuestCtrlMsgSkipOld(uint32_t uClientId)
    419402{
    420403    HGCMMsgCmdSkip Msg;
    421404
    422405    /* 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);
    424407    VbglHGCMParmUInt32Set(&Msg.flags, 0 /* Flags, unused */);
    425408    return VbglR3HGCMCall(&Msg.hdr, sizeof(Msg));
     
    436419{
    437420    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);
    439422    return VbglR3HGCMCall(&Msg.hdr, sizeof(Msg));
    440423}
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