VirtualBox

Changeset 79120 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Jun 13, 2019 10:08:33 AM (6 years ago)
Author:
vboxsync
Message:

Shared Clipboard/URI: Update.

File:
1 edited

Legend:

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

    r79107 r79120  
    9797    VBoxClipboardGetHostMsg Msg;
    9898
    99     VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_FN_GET_HOST_MSG, VBOX_SHARED_CLIPBOARD_CPARMS_GET_HOST_MSG);
     99    VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_GUEST_FN_GET_HOST_MSG, VBOX_SHARED_CLIPBOARD_CPARMS_GET_HOST_MSG);
    100100    VbglHGCMParmUInt32Set(&Msg.msg, 0);
    101101    VbglHGCMParmUInt32Set(&Msg.formats, 0);
     
    135135    VBoxClipboardReadDataMsg Msg;
    136136
    137     VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_FN_READ_DATA, VBOX_SHARED_CLIPBOARD_CPARMS_READ_DATA);
     137    VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_GUEST_FN_READ_DATA, VBOX_SHARED_CLIPBOARD_CPARMS_READ_DATA);
    138138    VbglHGCMParmUInt32Set(&Msg.format, fFormat);
    139139    VbglHGCMParmPtrSet(&Msg.ptr, pv, cb);
     
    172172    RT_ZERO(Msg);
    173173    VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient,
    174                        VBOX_SHARED_CLIPBOARD_FN_READ_DATA_HDR, VBOX_SHARED_CLIPBOARD_CPARMS_READ_DATA_HDR);
     174                       VBOX_SHARED_CLIPBOARD_GUEST_FN_READ_DATA_HDR, VBOX_SHARED_CLIPBOARD_CPARMS_READ_DATA_HDR);
    175175    Msg.uContext.SetUInt32(0);
    176176    Msg.uFlags.SetUInt32(0);
     
    218218{
    219219    VBoxClipboardWriteDataHdrMsg Msg;
    220     VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_FN_WRITE_DATA_HDR, VBOX_SHARED_CLIPBOARD_CPARMS_WRITE_DATA_HDR);
     220    VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_GUEST_FN_WRITE_DATA_HDR, VBOX_SHARED_CLIPBOARD_CPARMS_WRITE_DATA_HDR);
    221221
    222222    Msg.uContext.SetUInt32(0);                                          /** @todo Not used yet. */
     
    260260
    261261    VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient,
    262                        VBOX_SHARED_CLIPBOARD_FN_READ_DATA_CHUNK, VBOX_SHARED_CLIPBOARD_CPARMS_READ_DATA_CHUNK);
     262                       VBOX_SHARED_CLIPBOARD_GUEST_FN_READ_DATA_CHUNK, VBOX_SHARED_CLIPBOARD_CPARMS_READ_DATA_CHUNK);
    263263    Msg.pvData.SetPtr(pvData, cbData);
    264264    Msg.cbData.SetUInt32(0);
     
    413413
    414414    VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient,
    415                        VBOX_SHARED_CLIPBOARD_FN_WRITE_DATA_CHUNK, VBOX_SHARED_CLIPBOARD_CPARMS_WRITE_DATA_CHUNK);
     415                       VBOX_SHARED_CLIPBOARD_GUEST_FN_WRITE_DATA_CHUNK, VBOX_SHARED_CLIPBOARD_CPARMS_WRITE_DATA_CHUNK);
    416416    Msg.pvData.SetPtr(pvData, cbData);
    417417    Msg.cbData.SetUInt32(0);
     
    562562    RT_ZERO(Msg);
    563563
    564     VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_FN_READ_DIR, VBOX_SHARED_CLIPBOARD_CPARMS_READ_DIR);
     564    VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_GUEST_FN_READ_DIR, VBOX_SHARED_CLIPBOARD_CPARMS_READ_DIR);
    565565    /** @todo Context ID not used yet. */
    566566    Msg.uContext.SetUInt32(0);
     
    608608    RT_ZERO(Msg);
    609609
    610     VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_FN_WRITE_DIR, VBOX_SHARED_CLIPBOARD_CPARMS_WRITE_DIR);
     610    VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_GUEST_FN_WRITE_DIR, VBOX_SHARED_CLIPBOARD_CPARMS_WRITE_DIR);
    611611    /** @todo Context ID not used yet. */
    612612    Msg.pvName.SetPtr((void *)pszPath, (uint32_t)cbPathSz);
     
    645645
    646646    VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient,
    647                        VBOX_SHARED_CLIPBOARD_FN_READ_FILE_HDR, VBOX_SHARED_CLIPBOARD_CPARMS_READ_FILE_HDR);
     647                       VBOX_SHARED_CLIPBOARD_GUEST_FN_READ_FILE_HDR, VBOX_SHARED_CLIPBOARD_CPARMS_READ_FILE_HDR);
    648648    Msg.uContext.SetUInt32(0); /** @todo Not used yet. */
    649649    Msg.pvName.SetPtr(pszFilename, cbFilename);
     
    693693    RT_ZERO(MsgHdr);
    694694
    695     VBGL_HGCM_HDR_INIT(&MsgHdr.hdr, idClient, VBOX_SHARED_CLIPBOARD_FN_WRITE_FILE_HDR, VBOX_SHARED_CLIPBOARD_CPARMS_WRITE_FILE_HDR);
     695    VBGL_HGCM_HDR_INIT(&MsgHdr.hdr, idClient, VBOX_SHARED_CLIPBOARD_GUEST_FN_WRITE_FILE_HDR, VBOX_SHARED_CLIPBOARD_CPARMS_WRITE_FILE_HDR);
    696696    MsgHdr.uContext.SetUInt32(0);                                                    /* Context ID; unused at the moment. */
    697697    MsgHdr.pvName.SetPtr((void *)pszFilename, (uint32_t)(cbFileSz));
     
    726726
    727727    VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient,
    728                        VBOX_SHARED_CLIPBOARD_FN_READ_FILE_DATA, VBOX_SHARED_CLIPBOARD_CPARMS_READ_FILE_DATA);
     728                       VBOX_SHARED_CLIPBOARD_GUEST_FN_READ_FILE_DATA, VBOX_SHARED_CLIPBOARD_CPARMS_READ_FILE_DATA);
    729729    Msg.uContext.SetUInt32(0);
    730730    Msg.pvData.SetPtr(pvData, cbData);
     
    763763    RT_ZERO(MsgData);
    764764
    765     VBGL_HGCM_HDR_INIT(&MsgData.hdr, idClient, VBOX_SHARED_CLIPBOARD_FN_WRITE_FILE_DATA, VBOX_SHARED_CLIPBOARD_CPARMS_READ_FILE_DATA);
     765    VBGL_HGCM_HDR_INIT(&MsgData.hdr, idClient, VBOX_SHARED_CLIPBOARD_GUEST_FN_WRITE_FILE_DATA, VBOX_SHARED_CLIPBOARD_CPARMS_READ_FILE_DATA);
    766766    MsgData.uContext.SetUInt32(0);                                                    /* Context ID; unused at the moment. */
    767767    MsgData.pvData.SetPtr(pvData, cbData);
     
    791791    VBoxClipboardWriteFormatsMsg Msg;
    792792
    793     VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_FN_REPORT_FORMATS, VBOX_SHARED_CLIPBOARD_CPARMS_FORMATS);
     793    VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_GUEST_FN_REPORT_FORMATS, VBOX_SHARED_CLIPBOARD_CPARMS_FORMATS);
    794794    VbglHGCMParmUInt32Set(&Msg.formats, fFormats);
    795795
     
    812812{
    813813    VBoxClipboardWriteDataMsg Msg;
    814     VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_FN_WRITE_DATA, VBOX_SHARED_CLIPBOARD_CPARMS_WRITE_DATA);
     814    VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_GUEST_FN_WRITE_DATA, VBOX_SHARED_CLIPBOARD_CPARMS_WRITE_DATA);
    815815    VbglHGCMParmUInt32Set(&Msg.format, fFormat);
    816816    VbglHGCMParmPtrSet(&Msg.ptr, pv, cb);
     
    859859    RT_ZERO(Msg);
    860860
    861     VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_FN_WRITE_ERROR, 2);
     861    VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_GUEST_FN_WRITE_ERROR, 2);
    862862    /** @todo Context ID not used yet. */
    863863    Msg.uContext.SetUInt32(0);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette